The following attributes are interpreted:
| Attribute | Values | Required |
|---|---|---|
| viewpath | Path to the ClearCase view file or directory that the command will operate on | No |
| reserved | Specifies whether to check out the file as reserved or not | Yes |
| out | Creates a writable file under a different filename | No |
| nodata | Checks out the file but does not create an editable file containing its data | No |
| branch | Specify a branch to check out the file to | No |
| version | Allows checkout of a version other than main latest | No |
| nowarn | Suppress warning messages | 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 |
| notco | Fail if it's already checked out to the current view. Set to false to ignore it. | No |
| failonerr | Throw an exception if the command fails. Default is true | No |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FLAG_BRANCH
-branch flag -- checks out the file on a specified branch |
| 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_NODATA
-ndata flag -- checks out the file but does not create an editable file containing its data |
| public static final String | FLAG_NOWARN
-nwarn flag -- suppresses warning messages |
| public static final String | FLAG_OUT
-out flag -- create a writable file under a different filename |
| public static final String | FLAG_RESERVED
-reserved flag -- check out the file as reserved |
| public static final String | FLAG_UNRESERVED
-reserved flag -- check out the file as unreserved |
| public static final String | FLAG_VERSION
-version flag -- allows checkout of a version that is not main latest |
| private String | |
| private String | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private String | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public String | |
| private void | getBranchCommand(Commandline
containing the command line string with or
without the branch flag and name appended cmd)Get the 'branch' command |
| 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 cfile flag and file appended cmd)Get the 'cfile' command |
| public boolean | |
| public boolean | |
| public boolean | |
| public String | |
| private void | getOutCommand(Commandline
containing the command line string with or
without the out flag and path appended cmd)Get the 'out' command |
| public boolean | |
| public boolean | |
| private boolean | |
| public void | |
| public void | |
| public void | |
| public void | setNoData(boolean
the status to set the flag to ndata)If true, checks out the file but does not create an editable file containing its data. |
| public void | setNotco(boolean
the status to set the flag to notco)If true, checkout fails if the element is already checked out to the current view. |
| public void | |
| public void | |
| public void | |
| public void | setVersion(boolean
the status to set the flag to version)If true, allows checkout of a version other than main latest. |
| FLAG_BRANCH | back to summary |
|---|---|
| public static final String FLAG_BRANCH -branch flag -- checks out the file on a specified branch | |
| 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_NODATA | back to summary |
|---|---|
| public static final String FLAG_NODATA -ndata flag -- checks out the file but does not create an editable file containing its data | |
| FLAG_NOWARN | back to summary |
|---|---|
| public static final String FLAG_NOWARN -nwarn flag -- suppresses warning messages | |
| FLAG_OUT | back to summary |
|---|---|
| public static final String FLAG_OUT -out flag -- create a writable file under a different filename | |
| FLAG_RESERVED | back to summary |
|---|---|
| public static final String FLAG_RESERVED -reserved flag -- check out the file as reserved | |
| FLAG_UNRESERVED | back to summary |
|---|---|
| public static final String FLAG_UNRESERVED -reserved flag -- check out the file as unreserved | |
| FLAG_VERSION | back to summary |
|---|---|
| public static final String FLAG_VERSION -version flag -- allows checkout of a version that is not main latest | |
| mBranch | back to summary |
|---|---|
| private String mBranch | |
| mCfile | back to summary |
|---|---|
| private String mCfile | |
| mComment | back to summary |
|---|---|
| private String mComment | |
| mNdata | back to summary |
|---|---|
| private boolean mNdata | |
| mNotco | back to summary |
|---|---|
| private boolean mNotco | |
| mNwarn | back to summary |
|---|---|
| private boolean mNwarn | |
| mOut | back to summary |
|---|---|
| private String mOut | |
| mReserved | back to summary |
|---|---|
| private boolean mReserved | |
| mVersion | back to summary |
|---|---|
| private boolean mVersion | |
| CCCheckout | back to summary |
|---|---|
| public CCCheckout() | |
| 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.
| |
| getBranch | back to summary |
|---|---|
| public String getBranch() Get branch name
| |
| getBranchCommand | back to summary |
|---|---|
| private void getBranchCommand(Commandline cmd) Get the 'branch' command
| |
| 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 'cfile' command
| |
| getNoData | back to summary |
|---|---|
| public boolean getNoData() Get nodata flag status
| |
| getNotco | back to summary |
|---|---|
| public boolean getNotco() Get notco flag status
| |
| getNoWarn | back to summary |
|---|---|
| public boolean getNoWarn() Get nowarn flag status
| |
| getOut | back to summary |
|---|---|
| public String getOut() Get out file
| |
| getOutCommand | back to summary |
|---|---|
| private void getOutCommand(Commandline cmd) Get the 'out' command
| |
| getReserved | back to summary |
|---|---|
| public boolean getReserved() Get reserved flag status
| |
| getVersion | back to summary |
|---|---|
| public boolean getVersion() Get version flag status
| |
| lsCheckout | back to summary |
|---|---|
| private boolean lsCheckout() Check to see if the element is checked out in the current view. | |
| setBranch | back to summary |
|---|---|
| public void setBranch(String branch) Specify a branch to check out the file to.
| |
| 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.
| |
| setNoData | back to summary |
|---|---|
| public void setNoData(boolean ndata) If true, checks out the file but does not create an editable file containing its data.
| |
| setNotco | back to summary |
|---|---|
| public void setNotco(boolean notco) If true, checkout fails if the element is already checked out to the current view.
| |
| setNoWarn | back to summary |
|---|---|
| public void setNoWarn(boolean nwarn) If true, warning messages are suppressed.
| |
| setOut | back to summary |
|---|---|
| public void setOut(String outf) Creates a writable file under a different filename.
| |
| setReserved | back to summary |
|---|---|
| public void setReserved(boolean reserved) If true, checks out the file as reserved.
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(boolean version) If true, allows checkout of a version other than main latest.
| |