开发者

how do i add delay in ant script?

开发者 https://www.devze.com 2023-03-09 04:23 出处:网络
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 load

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消