Top Description Fields Constructors Methods
org.apache.tools.ant.helper

public Class DefaultExecutor

extends Object
implements Executor
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.Executor
Imports
org.apache.tools.ant.BuildException, .Executor, .Project

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

Field Summary

Modifier and TypeField and Description
private static final SingleCheckExecutor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
executeTargets(Project
the Ant Project.
project
,
String[]
String[] of Target names as specified on the command line.
targetNames
)

Implements org.apache.tools.ant.Executor.executeTargets.

Execute the specified Targets for the specified Project..
public Executor
getSubProjectExecutor()

Implements org.apache.tools.ant.Executor.getSubProjectExecutor.

Get the appropriate subproject Executor instance.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SUB_EXECUTORback to summary
private static final SingleCheckExecutor SUB_EXECUTOR

Constructor Detail

DefaultExecutorback to summary
public DefaultExecutor()

Method Detail

executeTargetsback to summary
public void executeTargets(Project project, String[] targetNames) throws BuildException

Implements org.apache.tools.ant.Executor.executeTargets.

Doc from org.apache.tools.ant.Executor.executeTargets.

Execute the specified Targets for the specified Project..

Parameters
project:Project

the Ant Project.

targetNames:String[]

String[] of Target names as specified on the command line.

Exceptions
BuildException:
on error
getSubProjectExecutorback to summary
public Executor getSubProjectExecutor()

Implements org.apache.tools.ant.Executor.getSubProjectExecutor.

Doc from org.apache.tools.ant.Executor.getSubProjectExecutor.

Get the appropriate subproject Executor instance. This allows the top executor to control what type of executor is used to execute subprojects via <ant>/<antcall>/<subant> and task that extend these. All bundled Executors return a SingleCheckExecutor (running a merged set of depended targets for all targets called) to run sub-builds..

Returns:Executor

an Executor instance.