org.apache.tools.ant.helper
public class: DefaultExecutor [javadoc |
source]
java.lang.Object
org.apache.tools.ant.helper.DefaultExecutor
All Implemented Interfaces:
Executor
Default Target executor implementation. Runs each target individually
(including all of its dependencies). If an error occurs, behavior is
determined by the Project's "keep-going" mode.
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.tools.ant.helper.DefaultExecutor Detail: |
public void executeTargets(Project project,
String[] targetNames) throws BuildException {
BuildException thrownException = null;
for (int i = 0; i < targetNames.length; i++) {
try {
project.executeTarget(targetNames[i]);
} catch (BuildException ex) {
if (project.isKeepGoingMode()) {
thrownException = ex;
} else {
throw ex;
}
}
}
if (thrownException != null) {
throw thrownException;
}
}
|
public Executor getSubProjectExecutor() {
return SUB_EXECUTOR;
}
|