Class CCUnCheckout
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.Task
- 
- org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase
- 
- org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class CCUnCheckout extends ClearCase Performs ClearCase UnCheckout command.The following attributes are interpreted: Task attributes 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 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringFLAG_KEEPCOPY-keep flag -- keep a copy of the file with .keep extensionstatic java.lang.StringFLAG_RM-rm flag -- remove the copy of the file- 
Fields inherited from class org.apache.tools.ant.taskdefs.optional.clearcase.ClearCaseCOMMAND_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_UPDATE
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description CCUnCheckout()
 - 
Method SummaryModifier and Type Method Description voidexecute()Executes the task.booleangetKeepCopy()Get keepcopy flag statusvoidsetKeepCopy(boolean keep)If true, keep a copy of the file with a .keep extension.- 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.clearcase.ClearCasegetClearToolCommand, getFailOnErr, getObjSelect, getViewPath, getViewPathBasename, run, runS, runS, setClearToolDir, setFailOnErr, setObjSelect, setViewPath
 - 
Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Field Detail- 
FLAG_KEEPCOPYpublic static final java.lang.String FLAG_KEEPCOPY -keep flag -- keep a copy of the file with .keep extension- See Also:
- Constant Field Values
 
 - 
FLAG_RMpublic static final java.lang.String FLAG_RM -rm flag -- remove the copy of the file- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
executepublic void execute() throws BuildExceptionExecutes the task.Builds a command line to execute cleartool and then calls Exec's run method to execute the command line. - Overrides:
- executein class- Task
- Throws:
- BuildException- if the command fails and failonerr is set to true
 
 - 
setKeepCopypublic void setKeepCopy(boolean keep) If true, keep a copy of the file with a .keep extension.- Parameters:
- keep- the status to set the flag to
 
 - 
getKeepCopypublic boolean getKeepCopy() Get keepcopy flag status- Returns:
- boolean containing status of keep flag
 
 
- 
 
-