next up previous contents index
Next: File Tasks Up: Overview of Ant Tasks Previous: EJB Tasks   Contents   Index

Execution Tasks

Task Name Description
Ant Runs Ant on a supplied buildfile, optionally passing properties (with possibly new values). This task can be used to build sub-projects.
AntCall Runs another target within the same buildfile, optionally passing properties (with possibly new values).
Apply/ExecOn Executes a system command. When the os attribute is specified, the command is only executed when Ant is run on one of the specified operating systems.
Dependset This task compares a set of source files with a set of target files. If any of the source files is newer than any of the target files, all the target files are removed.
Exec Executes a system command. When the os attribute is specified, the command is only executed when Ant is run on one of the specified operating systems.
Java Executes a Java class within the running (Ant) VM, or in another VM if the fork attribute is specified.
Parallel A container task that can contain other Ant tasks. Each nested task specified within the <parallel> tag will be executed in its own thread.
Sequential A container task that can contain other Ant tasks. The nested tasks are simply executed in sequence. Its primary use is to support the sequential execution of a subset of tasks within the <parallel> tag.
Sleep A task for suspending execution for a specified period of time. Useful when a build or deployment process requires an interval between tasks.
Waitfor Blocks execution until a set of specified conditions become true. This task is intended to be used with the Parallel task to synchronize a set of processes.


next up previous contents index
Next: File Tasks Up: Overview of Ant Tasks Previous: EJB Tasks   Contents   Index
Andrew Marlow 2003-07-08