FileDocCategorySizeDatePackage
SpecialSeq.javaAPI DocApache Ant 1.702174Wed Dec 13 06:16:24 GMT 2006test

SpecialSeq

public class SpecialSeq extends org.apache.tools.ant.Task implements org.apache.tools.ant.TaskContainer

Fields Summary
private Vector
nestedTasks
Optional Vector holding the nested tasks
private org.apache.tools.ant.types.FileSet
fileset
private org.apache.tools.ant.taskdefs.Echo
nestedEcho
Constructors Summary
Methods Summary
public voidaddFileset(org.apache.tools.ant.types.FileSet fileset)

        this.fileset = fileset;
    
public voidaddNested(org.apache.tools.ant.taskdefs.Echo nestedEcho)

        this.nestedEcho = nestedEcho;
    
public voidaddTask(org.apache.tools.ant.Task nestedTask)
Add a nested task.

param
nestedTask Nested task to execute

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

        if (fileset == null || fileset.getDir(getProject()) == null) {
            throw new BuildException("Fileset was not configured");
        }
        for (Enumeration e = nestedTasks.elements(); e.hasMoreElements();) {
            Task nestedTask = (Task) e.nextElement();
            nestedTask.perform();
        }
        nestedEcho.reconfigure();
        nestedEcho.perform();