FileDocCategorySizeDatePackage
Sequential.javaAPI DocApache Ant 1.702259Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs

Sequential

public class Sequential extends org.apache.tools.ant.Task implements org.apache.tools.ant.TaskContainer
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 {@link Parallel 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"

Fields Summary
private Vector
nestedTasks
Optional Vector holding the nested tasks
Constructors Summary
Methods Summary
public voidaddTask(org.apache.tools.ant.Task nestedTask)
Add a nested task to Sequential.

param
nestedTask Nested task to execute Sequential


                         
        
        nestedTasks.addElement(nestedTask);
    
public voidexecute()
Execute all nestedTasks.

throws
BuildException if one of the nested tasks fails.

        for (Iterator i = nestedTasks.iterator(); i.hasNext();) {
            Task nestedTask = (Task) i.next();
            nestedTask.perform();
        }