org.apache.tools.ant.taskdefs
public class: Sequential [javadoc |
source]
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Sequential
All Implemented Interfaces:
TaskContainer, Cloneable
Sequential is a container task - it can contain other Ant tasks. The nested
tasks are simply executed in sequence. Sequential's primary use is to support
the sequential execution of a subset of tasks within the
Parallel Task
The sequential task has no attributes and does not support any nested
elements apart from Ant tasks. Any valid Ant task may be embedded within the
sequential task.
- since:
Ant - 1.4
- ant.task:
category - ="control"
| Method from org.apache.tools.ant.taskdefs.Sequential Summary: |
|---|
|
addTask, execute |
| Methods from org.apache.tools.ant.Task: |
|---|
|
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, markInvalid, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Method from org.apache.tools.ant.taskdefs.Sequential Detail: |
public void addTask(Task nestedTask) {
nestedTasks.addElement(nestedTask);
}
Add a nested task to Sequential.
|
public void execute() throws BuildException {
for (Iterator i = nestedTasks.iterator(); i.hasNext();) {
Task nestedTask = (Task) i.next();
nestedTask.perform();
}
}
|