Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i add delay in ant script?

Tags:

ant

In my ant script, i have to execute this Read.exe

Read.exe will browse through version control and output a text file and which takes about a minute to complete. This text file is loaded as a .properties file for the antscript. However, it seems to me that i am unable to finish this task in time. By the time this .properties file completes, i have already executed another task which required some properties from this file. Therefore my question is.. how can i add delay in ANT script?

like image 276
jeremychan Avatar asked May 31 '11 08:05

jeremychan


2 Answers

<sleep milliseconds="10"/>

http://ant.apache.org/manual/Tasks/sleep.html

like image 78
Jacob Avatar answered Oct 02 '22 10:10

Jacob


There is a sleep task: <sleep milliseconds="10"/>

Edit

You might also use waitfor task, as described here.

like image 42
Miki Avatar answered Oct 02 '22 11:10

Miki