1 11 package org.eclipse.ant.internal.ui.antsupport; 12 13 import java.util.Arrays ; 14 import java.util.Vector ; 15 16 import org.apache.tools.ant.BuildException; 17 import org.apache.tools.ant.Executor; 18 import org.apache.tools.ant.Project; 19 import org.apache.tools.ant.helper.DefaultExecutor; 20 21 public class EclipseDefaultExecutor extends DefaultExecutor { 22 23 private static final EclipseSingleCheckExecutor SUB_EXECUTOR = new EclipseSingleCheckExecutor(); 24 25 28 public void executeTargets(Project project, String [] targetNames) throws BuildException { 29 Vector v= new Vector (); 30 v.addAll(Arrays.asList(targetNames)); 31 project.addReference("eclipse.ant.targetVector", v); super.executeTargets(project, targetNames); 33 } 34 35 38 public Executor getSubProjectExecutor() { 39 return SUB_EXECUTOR; 40 } 41 } 42 | Popular Tags |