By default the task expects the cleartool executable to be in the path, you can override this be specifying the cleartooldir attribute.
This class provides set and get methods for the 'viewpath' and 'objselect' attribute. It also contains constants for the flags that can be passed to cleartool.
Modifier and Type | Field and Description |
---|---|
private static final String | CLEARTOOL_EXE
Constant for the thing to execute |
public static final String | COMMAND_CHECKIN
The 'Checkin' command |
public static final String | COMMAND_CHECKOUT
The 'Checkout' command |
public static final String | COMMAND_LOCK
The 'Lock' command |
public static final String | COMMAND_LSCO
The 'LsCheckout' command |
public static final String | COMMAND_MKATTR
The 'Mkattr' command |
public static final String | COMMAND_MKBL
The 'Mkbl' command |
public static final String | COMMAND_MKDIR
The 'Mkdir' command |
public static final String | COMMAND_MKELEM
The 'Mkelem' command |
public static final String | COMMAND_MKLABEL
The 'Mklabel' command |
public static final String | COMMAND_MKLBTYPE
The 'Mklbtype' command |
public static final String | COMMAND_RMTYPE
The 'Rmtype' command |
public static final String | COMMAND_UNCHECKOUT
The 'UndoCheckout' command |
public static final String | COMMAND_UNLOCK
The 'Unlock' command |
public static final String | COMMAND_UPDATE
The 'Update' command |
private String | |
private boolean | |
private String | |
private String | |
private int |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
protected final String | Returns: String containing path to the executableBuilds and returns the command string to execute cleartool |
public boolean | |
public String | |
public String | |
public String | |
protected int | Returns: the exit status of the subprocess orINVALID command line to execute cmd)Execute the given command are return success or failure |
protected String | Returns: output of the command linecommand line to execute cmdline)
Deprecated
use the two arg version instead
Execute the given command, and return it's output
|
protected String | Returns: output of the command linecommand line to execute cmdline, boolean whether to fail the build if the command fails failOnError)Execute the given command, and return it's output |
public final void | setClearToolDir(String
the directory containing the cleartool executable dir)Set the directory where the cleartool executable is located. |
public void | setFailOnErr(boolean
the status to set the flag to failonerr)If true, command will throw an exception on failure. |
public final void | |
public final void | setViewPath(String
Path to the view directory or file viewPath)Set the path to the item in a ClearCase view to operate on. |
CLEARTOOL_EXE | back to summary |
---|---|
private static final String CLEARTOOL_EXE Constant for the thing to execute |
COMMAND_CHECKIN | back to summary |
---|---|
public static final String COMMAND_CHECKIN The 'Checkin' command |
COMMAND_CHECKOUT | back to summary |
---|---|
public static final String COMMAND_CHECKOUT The 'Checkout' command |
COMMAND_LOCK | back to summary |
---|---|
public static final String COMMAND_LOCK The 'Lock' command |
COMMAND_LSCO | back to summary |
---|---|
public static final String COMMAND_LSCO The 'LsCheckout' command |
COMMAND_MKATTR | back to summary |
---|---|
public static final String COMMAND_MKATTR The 'Mkattr' command |
COMMAND_MKBL | back to summary |
---|---|
public static final String COMMAND_MKBL The 'Mkbl' command |
COMMAND_MKDIR | back to summary |
---|---|
public static final String COMMAND_MKDIR The 'Mkdir' command |
COMMAND_MKELEM | back to summary |
---|---|
public static final String COMMAND_MKELEM The 'Mkelem' command |
COMMAND_MKLABEL | back to summary |
---|---|
public static final String COMMAND_MKLABEL The 'Mklabel' command |
COMMAND_MKLBTYPE | back to summary |
---|---|
public static final String COMMAND_MKLBTYPE The 'Mklbtype' command |
COMMAND_RMTYPE | back to summary |
---|---|
public static final String COMMAND_RMTYPE The 'Rmtype' command |
COMMAND_UNCHECKOUT | back to summary |
---|---|
public static final String COMMAND_UNCHECKOUT The 'UndoCheckout' command |
COMMAND_UNLOCK | back to summary |
---|---|
public static final String COMMAND_UNLOCK The 'Unlock' command |
COMMAND_UPDATE | back to summary |
---|---|
public static final String COMMAND_UPDATE The 'Update' command |
mClearToolDir | back to summary |
---|---|
private String mClearToolDir |
mFailonerr | back to summary |
---|---|
private boolean mFailonerr |
mobjSelect | back to summary |
---|---|
private String mobjSelect |
mviewPath | back to summary |
---|---|
private String mviewPath |
pcnt | back to summary |
---|---|
private int pcnt |
ClearCase | back to summary |
---|---|
public ClearCase() |
getClearToolCommand | back to summary |
---|---|
protected final String getClearToolCommand() Builds and returns the command string to execute cleartool
|
getFailOnErr | back to summary |
---|---|
public boolean getFailOnErr() Get failonerr flag status
|
getObjSelect | back to summary |
---|---|
public String getObjSelect() Get the object to operate on
|
getViewPath | back to summary |
---|---|
public String getViewPath() Get the path to the item in a clearcase view
|
getViewPathBasename | back to summary |
---|---|
public String getViewPathBasename() Get the basename path of the item in a clearcase view
|
run | back to summary |
---|---|
protected int run(Commandline cmd) Execute the given command are return success or failure
|
runS | back to summary |
---|---|
protected String runS(Commandline cmdline)
Deprecated use the two arg version instead Execute the given command, and return it's output
|
runS | back to summary |
---|---|
protected String runS(Commandline cmdline, boolean failOnError) Execute the given command, and return it's output
|
setClearToolDir | back to summary |
---|---|
public final void setClearToolDir(String dir) Set the directory where the cleartool executable is located.
|
setFailOnErr | back to summary |
---|---|
public void setFailOnErr(boolean failonerr) If true, command will throw an exception on failure.
|
setObjSelect | back to summary |
---|---|
public final void setObjSelect(String objSelect) Set the object to operate on.
|
setViewPath | back to summary |
---|---|
public final void setViewPath(String viewPath) Set the path to the item in a ClearCase view to operate on.
|