Class ForTask

  • All Implemented Interfaces:
    java.lang.Cloneable, org.apache.tools.ant.TaskContainer

    public class ForTask
    extends org.apache.tools.ant.Task
    implements org.apache.tools.ant.TaskContainer
    Since:
    Ant 1.5
    Version:
    $Revision: 91 $
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      Constructor Description
      ForTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTask​(org.apache.tools.ant.Task task)
      Add a nested task
      void execute()
      Execute all tasks.
      void maybeConfigure()  
      void setInc​(int i)
      Sets the inc attribute of the ForTask object
      void setInitName​(java.lang.String name)
      Sets the initName attribute of the ForTask object
      void setInitvalue​(int i)
      Sets the initvalue attribute of the ForTask object
      void setMaxvalue​(int i)
      Sets the maxvalue attribute of the ForTask object
      • Methods inherited from class org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ForTask

        public ForTask()
    • Method Detail

      • setInitName

        public void setInitName​(java.lang.String name)
        Sets the initName attribute of the ForTask object
        Parameters:
        name - The new initName value
      • setInitvalue

        public void setInitvalue​(int i)
        Sets the initvalue attribute of the ForTask object
        Parameters:
        i - The new initvalue value
      • setMaxvalue

        public void setMaxvalue​(int i)
        Sets the maxvalue attribute of the ForTask object
        Parameters:
        i - The new maxvalue value
      • setInc

        public void setInc​(int i)
        Sets the inc attribute of the ForTask object
        Parameters:
        i - The new inc value
      • addTask

        public void addTask​(org.apache.tools.ant.Task task)
        Add a nested task
        Specified by:
        addTask in interface org.apache.tools.ant.TaskContainer
        Parameters:
        task - Nested task
      • maybeConfigure

        public void maybeConfigure()
        Overrides:
        maybeConfigure in class org.apache.tools.ant.Task
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Execute all tasks.
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException - Description of Exception