FileDocCategorySizeDatePackage
DefaultExecutor.javaAPI DocApache Ant 1.702073Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.helper

DefaultExecutor

public class DefaultExecutor extends Object implements org.apache.tools.ant.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.
since
Ant 1.6.3

Fields Summary
private static final SingleCheckExecutor
SUB_EXECUTOR
Constructors Summary
Methods Summary
public voidexecuteTargets(org.apache.tools.ant.Project project, java.lang.String[] targetNames)
{@inheritDoc}.


      
         
          
        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 org.apache.tools.ant.ExecutorgetSubProjectExecutor()
{@inheritDoc}.

        return SUB_EXECUTOR;