Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ANT waiting for file creation

Tags:

java

build

wait

ant

is it possible to configure the ANT to pause the building process untill a file is created (with relative timeout)?

like image 593
Claus Avatar asked Jun 09 '10 09:06

Claus


2 Answers

<waitfor maxwait="30" maxwaitunit="second">
    <available file="myfile"/>
</waitfor>

See http://ant.apache.org/manual/Tasks/waitfor.html

like image 166
Chris Lercher Avatar answered Nov 15 '22 12:11

Chris Lercher


Use the waitfor task.

like image 32
Edward Dale Avatar answered Nov 15 '22 12:11

Edward Dale