org.apache.tools.ant.taskdefs.optional.perforce

Class P4Edit

public class P4Edit extends P4Base

Open file(s) for edit. P4Change should be used to obtain a new changelist for P4Edit as, although P4Edit can open files to the default change, P4Submit cannot yet submit to it. Example Usage:
<p4edit change="${p4.change}" view="//depot/project/foo.txt" />

UNKNOWN: Should call reopen if file is already open in one of our changelists perhaps? category="scm"

Field Summary
Stringchange
number of the change list to work on
Method Summary
voidexecute()
Run the p4 edit command
voidsetChange(String change)
An existing changelist number to assign files to; optional but strongly recommended.

Field Detail

change

public String change
number of the change list to work on

Method Detail

execute

public void execute()
Run the p4 edit command

Throws: BuildException if there is no view specified

setChange

public void setChange(String change)
An existing changelist number to assign files to; optional but strongly recommended.

Parameters: change the change list number

Copyright