The following attributes are interpreted:
| Attribute | Values | Required |
|---|---|---|
| viewpath | Path to the ClearCase view directory that the command will operate on | Yes |
| 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 |
| nocheckout | Do not checkout after element creation | 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 directory |
| public static final String | FLAG_COMMENTFILE
-cfile flag -- file containing a comment to attach to the directory |
| public static final String | FLAG_NOCHECKOUT
-nco flag -- do not checkout element after creation |
| public static final String | FLAG_NOCOMMENT
-nc flag -- no comment is specified |
| private String | |
| 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 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 void | |
| public void | |
| public void | setNoCheckout(boolean
the status to set the flag to co)If true, do not checkout element after creation. |
| FLAG_COMMENT | back to summary |
|---|---|
| public static final String FLAG_COMMENT -c flag -- comment to attach to the directory | |
| FLAG_COMMENTFILE | back to summary |
|---|---|
| public static final String FLAG_COMMENTFILE -cfile flag -- file containing a comment to attach to the directory | |
| FLAG_NOCHECKOUT | back to summary |
|---|---|
| public static final String FLAG_NOCHECKOUT -nco flag -- do not checkout element after creation | |
| FLAG_NOCOMMENT | back to summary |
|---|---|
| public static final String FLAG_NOCOMMENT -nc flag -- no comment is specified | |
| mCfile | back to summary |
|---|---|
| private String mCfile | |
| mComment | back to summary |
|---|---|
| private String mComment | |
| mNoco | back to summary |
|---|---|
| private boolean mNoco | |
| CCMkdir | back to summary |
|---|---|
| public CCMkdir() | |
| 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
| |
| getNoCheckout | back to summary |
|---|---|
| public boolean getNoCheckout() Get no checkout flag status
| |
| setComment | back to summary |
|---|---|
| public void setComment(String comment) Sets the comment string.
| |
| setCommentFile | back to summary |
|---|---|
| public void setCommentFile(String cfile) Specifies a file containing a comment.
| |
| setNoCheckout | back to summary |
|---|---|
| public void setNoCheckout(boolean co) If true, do not checkout element after creation.
| |