FLAG_BRANCH
public static final String FLAG_BRANCH
-branch flag -- checks out the file on a specified branch
FLAG_COMMENT
public static final String FLAG_COMMENT
-c flag -- comment to attach to the file
FLAG_COMMENTFILE
public static final String FLAG_COMMENTFILE
-cfile flag -- file containing a comment to attach to the file
FLAG_NOCOMMENT
public static final String FLAG_NOCOMMENT
-nc flag -- no comment is specified
FLAG_NODATA
public static final String FLAG_NODATA
-ndata flag -- checks out the file but does not create an editable file containing its data
FLAG_NOWARN
public static final String FLAG_NOWARN
-nwarn flag -- suppresses warning messages
FLAG_OUT
public static final String FLAG_OUT
-out flag -- create a writable file under a different filename
FLAG_RESERVED
public static final String FLAG_RESERVED
-reserved flag -- check out the file as reserved
FLAG_UNRESERVED
public static final String FLAG_UNRESERVED
-reserved flag -- check out the file as unreserved
FLAG_VERSION
public static final String FLAG_VERSION
-version flag -- allows checkout of a version that is not main latest
execute
public void execute()
throws BuildException
Executes the task.
Builds a command line to execute cleartool and then calls Exec's run method
to execute the command line.
- execute in interface Task
BuildException
- if the command fails and failonerr is set to true
getBranch
public String getBranch()
Get branch name
- String containing the name of the branch
getComment
public String getComment()
Get comment string
- String containing the comment
getCommentFile
public String getCommentFile()
Get comment file
- String containing the path to the comment file
getNoData
public boolean getNoData()
Get nodata flag status
- boolean containing status of ndata flag
getNoWarn
public boolean getNoWarn()
Get nowarn flag status
- boolean containing status of nwarn flag
getNotco
public boolean getNotco()
Get notco flag status
- boolean containing status of notco flag
- ant 1.6.1
getOut
public String getOut()
Get out file
- String containing the path to the out file
getReserved
public boolean getReserved()
Get reserved flag status
- boolean containing status of reserved flag
getVersion
public boolean getVersion()
Get version flag status
- boolean containing status of version flag
setBranch
public void setBranch(String branch)
Specify a branch to check out the file to.
branch
- the name of the branch
setComment
public void setComment(String comment)
Sets the comment string.
comment
- the comment string
setCommentFile
public void setCommentFile(String cfile)
Specifies a file containing a comment.
cfile
- the path to the comment file
setNoData
public void setNoData(boolean ndata)
If true, checks out the file but does not create an
editable file containing its data.
ndata
- the status to set the flag to
setNoWarn
public void setNoWarn(boolean nwarn)
If true, warning messages are suppressed.
nwarn
- the status to set the flag to
setNotco
public void setNotco(boolean notco)
If true, checkout fails if the element is already checked out to the current view.
notco
- the status to set the flag to
- ant 1.6.1
setOut
public void setOut(String outf)
Creates a writable file under a different filename.
outf
- the path to the out file
setReserved
public void setReserved(boolean reserved)
If true, checks out the file as reserved.
reserved
- the status to set the flag to
setVersion
public void setVersion(boolean version)
If true, allows checkout of a version other than main latest.
version
- the status to set the flag to