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

public Class Sequential

extends Task
implements TaskContainer
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.TaskContainer
Imports
java.util.List, .Vector, org.apache.tools.ant.BuildException, .Task, .TaskContainer, org.apache.tools.ant.property.LocalProperties

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

Field Summary

Modifier and TypeField and Description
private List<Task>
nestedTasks

Optional Vector holding the nested tasks

Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addTask(Task
Nested task to execute Sequential
nestedTask
)

Implements org.apache.tools.ant.TaskContainer.addTask.

Add a nested task to Sequential.
public void
execute()

Overrides org.apache.tools.ant.Task.execute.

Execute all nestedTasks.
Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

nestedTasksback to summary
private List<Task> nestedTasks

Optional Vector holding the nested tasks

Constructor Detail

Sequentialback to summary
public Sequential()

Method Detail

addTaskback to summary
public void addTask(Task nestedTask)

Implements org.apache.tools.ant.TaskContainer.addTask.

Add a nested task to Sequential.

Parameters
nestedTask:Task

Nested task to execute Sequential

Annotations
@Override
executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

Execute all nestedTasks.

Annotations
@Override
Exceptions
BuildException:
if one of the nested tasks fails.