Browse Source

Minor stylistic refactoring.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277132 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 20 years ago
parent
commit
46399f6e36
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/main/org/apache/tools/ant/taskdefs/Ant.java

+ 3
- 2
src/main/org/apache/tools/ant/taskdefs/Ant.java View File

@@ -31,6 +31,7 @@ import java.util.HashSet;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.BuildListener;
import org.apache.tools.ant.DefaultLogger;
import org.apache.tools.ant.Executor;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.ProjectComponent;
import org.apache.tools.ant.ProjectHelper;
@@ -64,7 +65,7 @@ import org.apache.tools.ant.util.FileUtils;
public class Ant extends Task {

/** Target Executor */
private static SingleCheckExecutor executor = new SingleCheckExecutor();
private static final Executor EXECUTOR = new SingleCheckExecutor();

/** the basedir where is executed the build file */
private File dir = null;
@@ -398,7 +399,7 @@ public class Ant extends Task {
try {
log("Entering " + antFile + "...", Project.MSG_VERBOSE);
newProject.fireSubBuildStarted();
executor.executeTargets(newProject,
EXECUTOR.executeTargets(newProject,
(String[]) (locals.toArray(new String[locals.size()])));

} catch (BuildException ex) {


Loading…
Cancel
Save