Javatpoint Logo
Javatpoint Logo

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





Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA