Class CCUnlock
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.CCUnlock
- All Implemented Interfaces:
Cloneable
Performs a ClearCase Unlock command.
The following attributes are interpreted:
Attribute | Values | Required |
---|---|---|
comment | Specifies how to populate comments fields | No |
pname | Specifies the object pathname to be unlocked. | No |
objselect | This variable is obsolete. Should use objsel instead. | no |
objsel | Specifies the object(s) to be unlocked. | No |
failonerr | Throw an exception if the command fails. Default is true | No |
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
-comment flag -- method to use for commenting eventsstatic final String
-pname flag -- pathname to lockFields inherited from class org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase
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_UPDATE
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the task.Get comment methodGet list of objects to be lockedgetPname()
Get the pathname to be lockedvoid
setComment
(String comment) Sets how comments should be written for the event record(s)void
Sets the object(s) to be lockedvoid
setObjselect
(String objselect) Sets the object(s) to be lockedvoid
Sets the pathname to be lockedMethods inherited from class org.apache.tools.ant.taskdefs.optional.clearcase.ClearCase
getClearToolCommand, getFailOnErr, getObjSelect, getViewPath, getViewPathBasename, run, runS, runS, setClearToolDir, setFailOnErr, setObjSelect, setViewPath
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, 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.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
FLAG_COMMENT
-comment flag -- method to use for commenting events- See Also:
-
FLAG_PNAME
-
-
Constructor Details
-
CCUnlock
public CCUnlock()
-
-
Method Details
-
execute
Executes the task.Builds a command line to execute cleartool and then calls Exec's run method to execute the command line.
- Overrides:
execute
in classTask
- Throws:
BuildException
- if the command fails and failonerr is set to true
-
setComment
Sets how comments should be written for the event record(s)- Parameters:
comment
- comment method to use
-
getComment
-
setPname
Sets the pathname to be locked- Parameters:
pname
- pathname to be locked
-
getPname
Get the pathname to be locked- Returns:
- String containing the pathname to be locked
-
setObjselect
Sets the object(s) to be locked- Parameters:
objselect
- objects to be locked
-
setObjSel
Sets the object(s) to be locked- Parameters:
objsel
- objects to be locked- Since:
- ant 1.6.1
-
getObjselect
Get list of objects to be locked- Returns:
- String containing the objects to be locked
-