The following attributes are interpreted:
| Attribute | Values | Required |
|---|---|---|
| viewpath | Path to the ClearCase view file or directory that the command will operate on | 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 |
| nowarn | Suppress warning messages | No |
| preservetime | Preserve the modification time | No |
| keepcopy | Keeps a copy of the file with a .keep extension | No |
| identical | Allows the file to be checked in even if it is identical to the original | 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_IDENTICAL
-identical flag -- allows the file to be checked in even if it is identical to the original |
| public static final String | FLAG_KEEPCOPY
-keep flag -- keeps a copy of the file with a .keep extension |
| 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 |
| 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 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 | |
| public boolean | |
| public boolean | Returns: boolean containing status of preservetime flagGet preservetime flag status |
| public void | |
| public void | |
| public void | setIdentical(boolean
the status to set the flag to identical)If true, allows the file to be checked in even if it is identical to the original. |
| public void | setKeepCopy(boolean
the status to set the flag to keep)If true, keeps a copy of the file with a .keep extension. |
| 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_IDENTICAL | back to summary |
|---|---|
| public static final String FLAG_IDENTICAL -identical flag -- allows the file to be checked in even if it is identical to the original | |
| FLAG_KEEPCOPY | back to summary |
|---|---|
| public static final String FLAG_KEEPCOPY -keep flag -- keeps a copy of the file with a .keep extension | |
| 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 | |
| mCfile | back to summary |
|---|---|
| private String mCfile | |
| mComment | back to summary |
|---|---|
| private String mComment | |
| mIdentical | back to summary |
|---|---|
| private boolean mIdentical | |
| mKeep | back to summary |
|---|---|
| private boolean mKeep | |
| mNwarn | back to summary |
|---|---|
| private boolean mNwarn | |
| mPtime | back to summary |
|---|---|
| private boolean mPtime | |
| CCCheckin | back to summary |
|---|---|
| public CCCheckin() | |
| 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
| |
| getIdentical | back to summary |
|---|---|
| public boolean getIdentical() Get identical flag status
| |
| getKeepCopy | back to summary |
|---|---|
| public boolean getKeepCopy() Get keepcopy flag status
| |
| getNoWarn | back to summary |
|---|---|
| public boolean getNoWarn() Get nowarn flag status
| |
| getPreserveTime | back to summary |
|---|---|
| public boolean getPreserveTime() Get preservetime 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.
| |
| setIdentical | back to summary |
|---|---|
| public void setIdentical(boolean identical) If true, allows the file to be checked in even if it is identical to the original.
| |
| setKeepCopy | back to summary |
|---|---|
| public void setKeepCopy(boolean keep) If true, keeps a copy of the file with a .keep extension.
| |
| 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.
| |