All Implemented Interfaces:
Cloneable

public class BlockFor extends WaitFor
Since:
Ant 1.8
  • Constructor Details

    • BlockFor

      public BlockFor()
      Constructor that takes the name of the task in the task name.
    • BlockFor

      public BlockFor(String taskName)
      Constructor that takes the name of the task in the task name.
      Parameters:
      taskName - the name of the task.
  • Method Details

    • processTimeout

      protected void processTimeout() throws BuildTimeoutException
      If the wait fails, a BuildException is thrown. All the superclasses actions are called first.
      Overrides:
      processTimeout in class WaitFor
      Throws:
      BuildTimeoutException - on timeout, using the text in text
    • addText

      public void addText(String message)
      Set the error text; all properties are expanded in the message.
      Parameters:
      message - the text to use in a failure message