org.apache.tools.ant.taskdefs.optional.testing

Class BlockFor

public class BlockFor extends WaitFor

Since: Ant 1.8

Constructor Summary
BlockFor()
Constructor that takes the name of the task in the task name.
BlockFor(String taskName)
Constructor that takes the name of the task in the task name.
Method Summary
voidaddText(String message)
Set the error text; all properties are expanded in the message.
protected voidprocessTimeout()
If the wait fails, a BuildException is thrown.

Constructor Detail

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 Detail

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

processTimeout

protected void processTimeout()
If the wait fails, a BuildException is thrown. All the superclasses actions are called first.

Throws: BuildTimeoutException on timeout, using the text in text