The following attributes are interpreted:
| Attribute | Values | Required |
|---|---|---|
| viewpath | Path to the ClearCase view file or 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 |
| nowarn | Suppress warning messages | No |
| nocheckout | Do not checkout after element creation | No |
| checkin | Checkin element after creation | No |
| preservetime | Preserve the modification time (for checkin) | No |
| master | Assign mastership of the main branch to the current site | No |
| eltype | Element type to use during 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_CHECKIN
-ci flag -- checkin element after creation |
| 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_ELTYPE
-eltype flag -- element type to use during creation |
| public static final String | FLAG_MASTER
-master flag -- change mastership of main branch to current site |
| 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 |
| public static final String | FLAG_NOWARN
-nwarn flag -- suppresses warning messages |
| public static final String | FLAG_PRESERVETIME
-ptime flag -- preserves the modification time on checkin |
| private String | |
| private boolean | |
| private String | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public boolean | |
| 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 String | |
| private void | getEltypeCommand(Commandline
containing the command line string with or
without the comment flag and string appended cmd)Get the 'element type' command |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: boolean containing status of preservetime flagGet preservetime flag status |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setMaster(boolean
the status to set the flag to master)If true, changes mastership of the main branch to the current site |
| public void | setNoCheckout(boolean
the status to set the flag to co)If true, do not checkout element after creation. |
| public void | |
| public void |
| FLAG_CHECKIN | back to summary |
|---|---|
| public static final String FLAG_CHECKIN -ci flag -- checkin element after creation | |
| 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_ELTYPE | back to summary |
|---|---|
| public static final String FLAG_ELTYPE -eltype flag -- element type to use during creation | |
| FLAG_MASTER | back to summary |
|---|---|
| public static final String FLAG_MASTER -master flag -- change mastership of main branch to current site | |
| 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 | |
| FLAG_NOWARN | back to summary |
|---|---|
| public static final String FLAG_NOWARN -nwarn flag -- suppresses warning messages | |
| FLAG_PRESERVETIME | back to summary |
|---|---|
| public static final String FLAG_PRESERVETIME -ptime flag -- preserves the modification time on checkin | |
| mCfile | back to summary |
|---|---|
| private String mCfile | |
| mCheckin | back to summary |
|---|---|
| private boolean mCheckin | |
| mComment | back to summary |
|---|---|
| private String mComment | |
| mEltype | back to summary |
|---|---|
| private String mEltype | |
| mMaster | back to summary |
|---|---|
| private boolean mMaster | |
| mNoco | back to summary |
|---|---|
| private boolean mNoco | |
| mNwarn | back to summary |
|---|---|
| private boolean mNwarn | |
| mPtime | back to summary |
|---|---|
| private boolean mPtime | |
| CCMkelem | back to summary |
|---|---|
| public CCMkelem() | |
| 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.
| |
| getCheckin | back to summary |
|---|---|
| public boolean getCheckin() Get ci flag status
| |
| 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
| |
| getEltype | back to summary |
|---|---|
| public String getEltype() Get element type
| |
| getEltypeCommand | back to summary |
|---|---|
| private void getEltypeCommand(Commandline cmd) Get the 'element type' command
| |
| getMaster | back to summary |
|---|---|
| public boolean getMaster() Get master flag status
| |
| getNoCheckout | back to summary |
|---|---|
| public boolean getNoCheckout() Get no checkout flag status
| |
| getNoWarn | back to summary |
|---|---|
| public boolean getNoWarn() Get nowarn flag status
| |
| getPreserveTime | back to summary |
|---|---|
| public boolean getPreserveTime() Get preservetime flag status
| |
| setCheckin | back to summary |
|---|---|
| public void setCheckin(boolean ci) If true, checkin the element after creation
| |
| 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.
| |
| setEltype | back to summary |
|---|---|
| public void setEltype(String eltype) Specifies the element type to use.
| |
| setMaster | back to summary |
|---|---|
| public void setMaster(boolean master) If true, changes mastership of the main branch to the current site
| |
| setNoCheckout | back to summary |
|---|---|
| public void setNoCheckout(boolean co) If true, do not checkout element after creation.
| |
| setNoWarn | back to summary |
|---|---|
| public void setNoWarn(boolean nwarn) If true, suppress warning messages.
| |
| setPreserveTime | back to summary |
|---|---|
| public void setPreserveTime(boolean ptime) If true, preserve the modification time.
| |