org.apache.tools.ant.taskdefs.optional.clearcase
Class CCUnlock
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 |
|
static String | FLAG_COMMENT- -comment flag -- method to use for commenting events
|
static String | FLAG_PNAME- -pname flag -- pathname to lock
|
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 |
void | execute()- Executes the task.
|
String | getComment()- Get comment method
|
String | getObjselect()- Get list of objects to be locked
|
String | getPname()- Get the pathname to be locked
|
void | setComment(String comment)- Sets how comments should be written
for the event record(s)
|
void | setObjSel(String objsel)- Sets the object(s) to be locked
|
void | setObjselect(String objselect)- Sets the object(s) to be locked
|
void | setPname(String pname)- Sets the pathname to be locked
|
getClearToolCommand, getFailOnErr, getObjSelect, getViewPath, getViewPathBasename, run, runS, setClearToolDir, setFailOnErr, setObjSelect, setViewPath |
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
FLAG_COMMENT
public static final String FLAG_COMMENT
-comment flag -- method to use for commenting events
FLAG_PNAME
public static final String FLAG_PNAME
-pname flag -- pathname to lock
execute
public void execute()
throws BuildException Executes the task.
Builds a command line to execute cleartool and then calls Exec's run method
to execute the command line.
- execute in interface Task
getComment
public String getComment()
Get comment method
- String containing the desired comment method
getObjselect
public String getObjselect()
Get list of objects to be locked
- String containing the objects to be locked
getPname
public String getPname()
Get the pathname to be locked
- String containing the pathname to be locked
setComment
public void setComment(String comment)
Sets how comments should be written
for the event record(s)
comment - comment method to use
setObjSel
public void setObjSel(String objsel)
Sets the object(s) to be locked
objsel - objects to be locked
setObjselect
public void setObjselect(String objselect)
Sets the object(s) to be locked
objselect - objects to be locked
setPname
public void setPname(String pname)
Sets the pathname to be locked
pname - pathname to be locked
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.