Class Break

  • All Implemented Interfaces:
    Breakable, java.lang.Cloneable

    public class Break
    extends org.apache.tools.ant.Task
    implements Breakable
    This is a marker task that indicates to a Breakable that a break condition has occurred.
    • 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
      Break()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBreak​(Break b)
      Adds a nested Break.
      boolean doBreak()  
      void execute()  
      void setBreak​(boolean b)
      Set the break flag to the given value.
      • 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, maybeConfigure, 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

      • Break

        public Break()
    • Method Detail

      • setBreak

        public void setBreak​(boolean b)
        Description copied from interface: Breakable
        Set the break flag to the given value.
        Specified by:
        setBreak in interface Breakable
        Parameters:
        b - the value for the flag
      • addBreak

        public void addBreak​(Break b)
        Description copied from interface: Breakable
        Adds a nested Break.
        Specified by:
        addBreak in interface Breakable
        Parameters:
        b - the Break to add
      • execute

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

        public boolean doBreak()
        Specified by:
        doBreak in interface Breakable
        Returns:
        the value of the break flag.