Home » Apache Ant Sleep Task

Apache Ant Sleep Task

by Online Tutorials Library

Apache Ant Sleep Task

This task is used to sleep process for a specified time. Time can be in milliseconds, seconds or hours. It is useful while deploying application requires interval between tasks.

It uses various attributes which are given below.

Apache Ant Sleep Task Attributes

Attribute Description Required
hours Set number of hours to sleep. No
minutes Set number of minutes to sleep. No
seconds Set number of seconds to sleep. No
milliseconds Set sleep time in milliseconds. No
failonerror Flag controlling whether to break the build on an error No

Apache Ant Sleep Task Example

Sleep for specified milliseconds.

Sleep for specified seconds

Sleep for no time

You may also like