Top Fields Constructors Methods
org.apache.tools.ant.taskdefs.optional.testing

public Class BlockFor

extends WaitFor
Class Inheritance
Imports
org.apache.tools.ant.taskdefs.WaitFor

Since
Ant 1.8

Field Summary

Modifier and TypeField and Description
private String
text

Text to include in a message

Inherited from org.apache.tools.ant.taskdefs.WaitFor:
DEFAULT_CHECK_MILLISDEFAULT_MAX_WAIT_MILLISONE_DAYONE_HOURONE_MILLISECONDONE_MINUTEONE_SECONDONE_WEEK

Constructor Summary

AccessConstructor and Description
public
BlockFor()

Constructor that takes the name of the task in the task name.

public
BlockFor(String
the name of the task.
taskName
)

Constructor that takes the name of the task in the task name.

Method Summary

Modifier and TypeMethod and Description
public void
addText(String
the text to use in a failure message
message
)

Set the error text; all properties are expanded in the message.

protected void
processTimeout()

Overrides org.apache.tools.ant.taskdefs.WaitFor.processTimeout.

If the wait fails, a BuildException is thrown.
Inherited from org.apache.tools.ant.taskdefs.WaitFor:
calculateCheckEveryMilliscalculateMaxWaitMillisexecuteprocessSuccesssetCheckEverysetCheckEveryUnitsetMaxWaitsetMaxWaitUnitsetTimeoutProperty

Field Detail

textback to summary
private String text

Text to include in a message

Constructor Detail

BlockForback to summary
public BlockFor()

Constructor that takes the name of the task in the task name.

BlockForback to summary
public BlockFor(String taskName)

Constructor that takes the name of the task in the task name.

Parameters
taskName:String

the name of the task.

Method Detail

addTextback to summary
public void addText(String message)

Set the error text; all properties are expanded in the message.

Parameters
message:String

the text to use in a failure message

processTimeoutback to summary
protected void processTimeout() throws BuildTimeoutException

Overrides org.apache.tools.ant.taskdefs.WaitFor.processTimeout.

If the wait fails, a BuildException is thrown. All the superclasses actions are called first.

Annotations
@Override
Exceptions
BuildTimeoutException:
on timeout, using the text in text