Name
sleep
Synopsis
Pause the build for a specified amount of time.
Attributes
-
failonerror
(1.4, boolean, N) If
true
, the build fails when any error occurs while sleeping. Defaults totrue
.-
hours
(1.4, int, N) The number of hours.
-
milliseconds
(1.4, int, N) The number of milliseconds.
-
minutes
(1.4, int, N) The number of minutes.
-
seconds
(1.4, int, N) The number of seconds.
Content
None.
Example Usage
<!-- start a web server, then wait a few seconds for it to initialize --> <sleep seconds="10"/> <!-- now start the client unit tests -->
Get Ant: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.