The following attributes are interpreted:
Attribute | Values | Required |
---|---|---|
replace | Specifies replacing an existing lock | No |
nusers | Specifies user(s) who can still modify the object/pname | No |
obsolete | Specifies that the object/pname should be marked obsolete | No |
comment | Specifies how to populate comments fields | No |
pname | Specifies the pathname to be locked. | 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 |
Modifier and Type | Field and Description |
---|---|
public static final String | FLAG_COMMENT
-comment flag -- method to use for commenting events |
public static final String | FLAG_NUSERS
-nusers flag -- list of users to exclude from lock |
public static final String | FLAG_OBSOLETE
-obsolete flag -- mark locked object as obsolete |
public static final String | FLAG_PNAME
-pname flag -- pathname to lock |
public static final String | FLAG_REPLACE
-replace flag -- replace existing lock on object(s) |
private String | |
private String | |
private String | |
private boolean | |
private String | |
private boolean |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
private void | |
public void | |
public String | |
private void | getCommentCommand(Commandline
containing the command line string with or without the
comment flag and value appended cmd)Get the 'comment' command |
public String | |
private void | getNusersCommand(Commandline
containing the command line string with or
without the nusers flag and value appended cmd)Get the 'nusers' command |
public String | |
public boolean | |
private String | Returns: String containing the object/pname being worked onReturn which object/pname is being operated on |
public String | |
private void | getPnameCommand(Commandline
containing the command line string with or
without the pname flag and value appended cmd)Get the 'pname' command |
public boolean | |
public void | setComment(String
comment method to use comment)Sets how comments should be written for the event record(s) |
public void | |
public void | |
public void | |
public void | |
public void | |
public void |
FLAG_COMMENT | back to summary |
---|---|
public static final String FLAG_COMMENT -comment flag -- method to use for commenting events |
FLAG_NUSERS | back to summary |
---|---|
public static final String FLAG_NUSERS -nusers flag -- list of users to exclude from lock |
FLAG_OBSOLETE | back to summary |
---|---|
public static final String FLAG_OBSOLETE -obsolete flag -- mark locked object as obsolete |
FLAG_PNAME | back to summary |
---|---|
public static final String FLAG_PNAME -pname flag -- pathname to lock |
FLAG_REPLACE | back to summary |
---|---|
public static final String FLAG_REPLACE -replace flag -- replace existing lock on object(s) |
mComment | back to summary |
---|---|
private String mComment |
mNusers | back to summary |
---|---|
private String mNusers |
mObjselect | back to summary |
---|---|
private String mObjselect |
mObsolete | back to summary |
---|---|
private boolean mObsolete |
mPname | back to summary |
---|---|
private String mPname |
mReplace | back to summary |
---|---|
private boolean mReplace |
CCLock | back to summary |
---|---|
public CCLock() |
checkOptions | back to summary |
---|---|
private void checkOptions(Commandline cmd) Check the command line options. |
execute | back to summary |
---|---|
public void execute() throws BuildException Overrides org. Executes the task. Builds a command line to execute cleartool and then calls Exec's run method to execute the command line.
|
getComment | back to summary |
---|---|
public String getComment() Get comment method
|
getCommentCommand | back to summary |
---|---|
private void getCommentCommand(Commandline cmd) Get the 'comment' command
|
getNusers | back to summary |
---|---|
public String getNusers() Get nusers list
|
getNusersCommand | back to summary |
---|---|
private void getNusersCommand(Commandline cmd) Get the 'nusers' command
|
getObjselect | back to summary |
---|---|
public String getObjselect() Get list of objects to be locked
|
getObsolete | back to summary |
---|---|
public boolean getObsolete() Get obsolete flag status
|
getOpType | back to summary |
---|---|
private String getOpType() Return which object/pname is being operated on
|
getPname | back to summary |
---|---|
public String getPname() Get the pathname to be locked
|
getPnameCommand | back to summary |
---|---|
private void getPnameCommand(Commandline cmd) Get the 'pname' command
|
getReplace | back to summary |
---|---|
public boolean getReplace() Get replace flag status
|
setComment | back to summary |
---|---|
public void setComment(String comment) Sets how comments should be written for the event record(s)
|
setNusers | back to summary |
---|---|
public void setNusers(String nusers) Sets the users who may continue to edit the object while it is locked.
|
setObjSel | back to summary |
---|---|
public void setObjSel(String objsel) Sets the object(s) to be locked
|
setObjselect | back to summary |
---|---|
public void setObjselect(String objselect) Sets the object(s) to be locked
|
setObsolete | back to summary |
---|---|
public void setObsolete(boolean obsolete) If true, mark object as obsolete.
|
setPname | back to summary |
---|---|
public void setPname(String pname) Sets the pathname to be locked
|
setReplace | back to summary |
---|---|
public void setReplace(boolean replace) If true, replace an existing lock.
|