public class P4Revert extends P4Base
failOnError, P4Client, P4CmdOpts, P4Opts, P4Port, P4User, P4View, shell, utildescription, location, project| Constructor and Description |
|---|
P4Revert() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
do the work
|
void |
setChange(java.lang.String revertChange)
The changelist to revert; optional.
|
void |
setRevertOnlyUnchanged(boolean onlyUnchanged)
flag to revert only unchanged files (p4 revert -a); optional, default false.
|
execP4Command, execP4Command, getErrorMessage, getInError, init, setClient, setCmdopts, setErrorMessage, setFailonerror, setGlobalopts, setInError, setPort, setUser, setViewbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void setChange(java.lang.String revertChange)
throws BuildException
revertChange - : the change list to revertBuildException - if the change list is null or empty stringpublic void setRevertOnlyUnchanged(boolean onlyUnchanged)
onlyUnchanged - if set to true revert only unchanged filespublic void execute()
throws BuildException
execute in class TaskBuildException - if an error occurs during the execution of the Perforce command
and failonError is set to true