开发者

how do i add delay in ant script?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜