Methods Summary |
---|
private void | checkOptions(org.apache.tools.ant.types.Commandline cmd)Check the command line options.
if (isRecurse()) {
cmd.createArgument().setValue(FLAG_RECURSE);
} // end of if ()
if (isVerbose()) {
cmd.createArgument().setValue(FLAG_VERBOSE);
} // end of if ()
if (getCcmProject() != null) {
cmd.createArgument().setValue(FLAG_PROJECT);
cmd.createArgument().setValue(getCcmProject());
}
|
public void | execute()Executes the task.
Builds a command line to execute ccm and then calls Exec's run method
to execute the command line.
Commandline commandLine = new Commandline();
int result = 0;
// build the command line from what we got the format
// as specified in the CCM.EXE help
commandLine.setExecutable(getCcmCommand());
commandLine.createArgument().setValue(getCcmAction());
checkOptions(commandLine);
result = run(commandLine);
if (Execute.isFailure(result)) {
String msg = "Failed executing: " + commandLine.toString();
throw new BuildException(msg, getLocation());
}
|
public java.lang.String | getCcmProject()Get the value of project.
return ccmProject;
|
public boolean | isRecurse()Get the value of recurse.
return recurse;
|
public boolean | isVerbose()Get the value of verbose.
return verbose;
|
public void | setCcmProject(java.lang.String v)Sets the ccm project on which the operation is applied.
this.ccmProject = v;
|
public void | setRecurse(boolean v)If true, recurse on subproject (default false).
this.recurse = v;
|
public void | setVerbose(boolean v)If true, do a verbose reconfigure operation (default false).
this.verbose = v;
|