public class P4Revert extends P4Base
failOnError, P4Client, P4CmdOpts, P4Opts, P4Port, P4User, P4View, shell, util
description, 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, setView
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public 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 Task
BuildException
- if an error occurs during the execution of the Perforce command
and failonError is set to true