In my ant script, i ha开发者_运维问答ve 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?
<sleep milliseconds="10"/>
http://ant.apache.org/manual/Tasks/sleep.html
There is a sleep
task: <sleep milliseconds="10"/>
Edit
You might also use waitfor
task, as described here.
精彩评论