Top Description Methods
org.apache.tools.ant

public Interface Executor

Known Direct Implementers
org.apache.tools.ant.helper.DefaultExecutor, org.apache.tools.ant.helper.IgnoreDependenciesExecutor, org.apache.tools.ant.helper.SingleCheckExecutor

Target executor abstraction.
Since
Ant 1.6.3

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
)

Execute the specified Targets for the specified Project.

public Executor

Returns:

an Executor instance.
getSubProjectExecutor
()

Get the appropriate subproject Executor instance.

Method Detail

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

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()

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.