Fields Summary |
---|
private String | ccmDir |
private String | ccmAction |
private static final String | CCM_EXEConstant for the thing to execute |
public static final String | COMMAND_CREATE_TASKThe 'CreateTask' command |
public static final String | COMMAND_CHECKOUTThe 'Checkout' command |
public static final String | COMMAND_CHECKINThe 'Checkin' command |
public static final String | COMMAND_RECONFIGUREThe 'Reconfigure' command |
public static final String | COMMAND_DEFAULT_TASKThe 'Reconfigure' command |
Methods Summary |
---|
public java.lang.String | getCcmAction()Get the value of ccmAction.
return ccmAction;
|
protected final java.lang.String | getCcmCommand()Builds and returns the command string to execute ccm
String toReturn = ccmDir;
if (!toReturn.equals("") && !toReturn.endsWith("/")) {
toReturn += "/";
}
toReturn += CCM_EXE;
return toReturn;
|
protected int | run(org.apache.tools.ant.types.Commandline cmd, org.apache.tools.ant.taskdefs.ExecuteStreamHandler handler)Run the command.
try {
Execute exe = new Execute(handler);
exe.setAntRun(getProject());
exe.setWorkingDirectory(getProject().getBaseDir());
exe.setCommandline(cmd.getCommandline());
return exe.execute();
} catch (java.io.IOException e) {
throw new BuildException(e, getLocation());
}
|
protected int | run(org.apache.tools.ant.types.Commandline cmd)Run the command.
return run(cmd, new LogStreamHandler(this, Project.MSG_VERBOSE, Project.MSG_WARN));
|
public void | setCcmAction(java.lang.String v)Set the value of ccmAction.
this.ccmAction = v;
|
public final void | setCcmDir(java.lang.String dir)Set the directory where the ccm executable is located.
ccmDir = FileUtils.translatePath(dir);
|