WaitFor.Unit
DEFAULT_CHECK_MILLIS, DEFAULT_MAX_WAIT_MILLIS, ONE_DAY, ONE_HOUR, ONE_MILLISECOND, ONE_MINUTE, ONE_SECOND, ONE_WEEK
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
addText(String message)
Set the error text; all properties are expanded in the message.
|
protected void |
processTimeout()
If the wait fails, a BuildException is thrown.
|
calculateCheckEveryMillis, calculateMaxWaitMillis, execute, processSuccess, setCheckEvery, setCheckEveryUnit, setMaxWait, setMaxWaitUnit, setTimeoutProperty
add, addAnd, addAvailable, addChecksum, addContains, addEquals, addFilesMatch, addHttp, addIsFalse, addIsFileSelected, addIsReference, addIsSet, addIsTrue, addNot, addOr, addOs, addSocket, addUptodate, countConditions, getConditions, getTaskName, setTaskName
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public BlockFor()
public BlockFor(String taskName)
taskName
- the name of the task.public void addText(String message)
message
- the text to use in a failure messageprotected void processTimeout() throws BuildTimeoutException
processTimeout
in class WaitFor
BuildTimeoutException
- on timeout, using the text in text