| Wait for an external event to occur.
Wait for an external process to start or to complete some
task. This is useful with the parallel task to
synchronize the execution of tests with server startup.
The following attributes can be specified on a waitfor task:
- maxwait - maximum length of time to wait before giving up
- maxwaitunit - The unit to be used to interpret maxwait attribute
- checkevery - amount of time to sleep between each check
- checkeveryunit - The unit to be used to interpret checkevery attribute
- timeoutproperty - name of a property to set if maxwait has been exceeded.
The maxwaitunit and checkeveryunit are allowed to have the following values:
millisecond, second, minute, hour, day and week. The default is millisecond.
For programmatic use/subclassing, there are two methods that may be overrridden,
processSuccess and processTimeout
since: Ant 1.5 |