/**
* Get the 'comment' command
*
* @param cmd containing the command line string with or without the
* comment flag and value appended
*/
private void getCommentCommand(Commandline cmd) {
if (getComment() == null) {
return;
}
else {
/* Had to make two separate commands here because if a space is
inserted between the flag and the value, it is treated as a
Windows filename with a space and it is enclosed in double
quotes ("). This breaks clearcase.
*/
cmd.createArgument().setValue(FLAG_COMMENT);
cmd.createArgument().setValue(getComment());
}
}
/**
* Get the 'pname' command
*
* @param cmd containing the command line string with or
* without the pname flag and value appended
*/
/**
* Get the 'pname' command
*
* @param cmd containing the command line string with or without the
* pname flag and value appended
*/
private void getPnameCommand(Commandline cmd) {
if (getPname() == null) {
return;
}
else {
/* Had to make two separate commands here because if a space is
inserted between the flag and the value, it is treated as a
Windows filename with a space and it is enclosed in double
quotes ("). This breaks clearcase.
*/
cmd.createArgument().setValue(FLAG_PNAME);
cmd.createArgument().setValue(getPname());
}
}
/**
* Return which object/pname is being operated on
*
* @return String containing the object/pname being worked on
*/
private String getOpType() {
if (getPname() != null) {
return getPname();
}
else {
return [[#variablefe8f8e0]]();
}
}
/**
* -replace flag -- replace existing lock on object(s)
*/
/**
* -comment flag -- method to use for commenting events
*/
public static final String [[#variablefddc1e0]]= [[#variable131c41c0]];
|