The following attributes are interpreted:
| Attribute | Values | Required |
|---|---|---|
| viewpath | Path to the ClearCase view file or directory that the command will operate on | No |
| replace | Replace a label of the same type on the same branch | No |
| recurse | Process each subdirectory under viewpath | No |
| version | Identify a specific version to attach the label to | No |
| typename | Name of the label type | Yes |
| vob | Name of the VOB | No |
| comment | Specify a comment. Only one of comment or cfile may be used. | No |
| commentfile | Specify a file containing a comment. Only one of comment or cfile may be used. | 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
-c flag -- comment to attach to the file |
| public static final String | FLAG_COMMENTFILE
-cfile flag -- file containing a comment to attach to the file |
| public static final String | FLAG_NOCOMMENT
-nc flag -- no comment is specified |
| public static final String | FLAG_RECURSE
-recurse flag -- process all subdirectories |
| public static final String | FLAG_REPLACE
-replace flag -- replace another label of the same type |
| public static final String | FLAG_VERSION
-version flag -- attach label to specified version |
| private String | |
| private String | |
| private boolean | |
| private boolean | |
| private String | |
| private String | |
| private String |
| 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 string appended cmd)Get the 'comment' command |
| public String | |
| private void | getCommentFileCommand(Commandline
containing the command line string with or
without the commentfile flag and file appended cmd)Get the 'commentfile' command |
| public boolean | |
| public boolean | |
| private void | getTypeCommand(Commandline
containing the command line string with or
without the type-name cmd)Get the type-name |
| public String | |
| public String | |
| private void | getVersionCommand(Commandline
CommandLine containing the command line string with or
without the version flag and string appended cmd)Get the 'version' command |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| FLAG_COMMENT | back to summary |
|---|---|
| public static final String FLAG_COMMENT -c flag -- comment to attach to the file | |
| FLAG_COMMENTFILE | back to summary |
|---|---|
| public static final String FLAG_COMMENTFILE -cfile flag -- file containing a comment to attach to the file | |
| FLAG_NOCOMMENT | back to summary |
|---|---|
| public static final String FLAG_NOCOMMENT -nc flag -- no comment is specified | |
| FLAG_RECURSE | back to summary |
|---|---|
| public static final String FLAG_RECURSE -recurse flag -- process all subdirectories | |
| FLAG_REPLACE | back to summary |
|---|---|
| public static final String FLAG_REPLACE -replace flag -- replace another label of the same type | |
| FLAG_VERSION | back to summary |
|---|---|
| public static final String FLAG_VERSION -version flag -- attach label to specified version | |
| mCfile | back to summary |
|---|---|
| private String mCfile | |
| mComment | back to summary |
|---|---|
| private String mComment | |
| mRecurse | back to summary |
|---|---|
| private boolean mRecurse | |
| mReplace | back to summary |
|---|---|
| private boolean mReplace | |
| mTypeName | back to summary |
|---|---|
| private String mTypeName | |
| mVersion | back to summary |
|---|---|
| private String mVersion | |
| mVOB | back to summary |
|---|---|
| private String mVOB | |
| CCMklabel | back to summary |
|---|---|
| public CCMklabel() | |
| 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 string
| |
| getCommentCommand | back to summary |
|---|---|
| private void getCommentCommand(Commandline cmd) Get the 'comment' command
| |
| getCommentFile | back to summary |
|---|---|
| public String getCommentFile() Get comment file
| |
| getCommentFileCommand | back to summary |
|---|---|
| private void getCommentFileCommand(Commandline cmd) Get the 'commentfile' command
| |
| getRecurse | back to summary |
|---|---|
| public boolean getRecurse() Get recurse flag status
| |
| getReplace | back to summary |
|---|---|
| public boolean getReplace() Get replace flag status
| |
| getTypeCommand | back to summary |
|---|---|
| private void getTypeCommand(Commandline cmd) Get the type-name
| |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() Get type-name
| |
| getVersion | back to summary |
|---|---|
| public String getVersion() Get version flag status
| |
| getVersionCommand | back to summary |
|---|---|
| private void getVersionCommand(Commandline cmd) Get the 'version' command
| |
| getVOB | back to summary |
|---|---|
| public String getVOB() Get VOB name
| |
| setComment | back to summary |
|---|---|
| public void setComment(String comment) Set comment string
| |
| setCommentFile | back to summary |
|---|---|
| public void setCommentFile(String cfile) Set comment file
| |
| setRecurse | back to summary |
|---|---|
| public void setRecurse(boolean recurse) Set recurse flag
| |
| setReplace | back to summary |
|---|---|
| public void setReplace(boolean replace) Set the replace flag
| |
| setTypeName | back to summary |
|---|---|
| public void setTypeName(String tn) Set the type-name
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(String version) Set the version flag
| |
| setVOB | back to summary |
|---|---|
| public void setVOB(String vob) Set the VOB name
| |