public class CCUnCheckout extends ClearCase
The following attributes are interpreted:
| Attribute | Values | Required |
|---|---|---|
| viewpath | Path to the ClearCase view file or directory that the command will operate on | No |
| keepcopy | Specifies whether to keep a copy of the file with a .keep extension or not | No |
| failonerr | Throw an exception if the command fails. Default is true | No |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FLAG_KEEPCOPY
-keep flag -- keep a copy of the file with .keep extension
|
static java.lang.String |
FLAG_RM
-rm flag -- remove the copy of the file
|
COMMAND_CHECKIN, COMMAND_CHECKOUT, COMMAND_LOCK, COMMAND_LSCO, COMMAND_MKATTR, COMMAND_MKBL, COMMAND_MKDIR, COMMAND_MKELEM, COMMAND_MKLABEL, COMMAND_MKLBTYPE, COMMAND_RMTYPE, COMMAND_UNCHECKOUT, COMMAND_UNLOCK, COMMAND_UPDATEdescription, location, project| Constructor and Description |
|---|
CCUnCheckout() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the task.
|
boolean |
getKeepCopy()
Get keepcopy flag status
|
void |
setKeepCopy(boolean keep)
If true, keep a copy of the file with a .keep extension.
|
getClearToolCommand, getFailOnErr, getObjSelect, getViewPath, getViewPathBasename, run, runS, setClearToolDir, setFailOnErr, setObjSelect, setViewPathbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic static final java.lang.String FLAG_KEEPCOPY
public static final java.lang.String FLAG_RM
public void execute()
throws BuildException
Builds a command line to execute cleartool and then calls Exec's run method to execute the command line.
execute in class TaskBuildException - if the command fails and failonerr is set to truepublic void setKeepCopy(boolean keep)
keep - the status to set the flag topublic boolean getKeepCopy()