How to ensure that apache-ant apply-tasks finish before further execution -


i use following code resolve php includes , create static html file. when done, want delete source php file:

<apply executable="php" parallel="false" dir="${prod.dir}" output="${prod.dir}/index.html">   <fileset dir="${prod.dir}" includes="index.php"/> </apply> <delete file="${prod.dir}/index.php"/> 

apparently, index.php gets deleted while php running. how can make sure delete task executed after php completed?

i know wait second or so, rather not want rely on this.

thanks stefan

if property spawn set false ( default false), ant should wait till complete. delete called after php complete.

apply task manual


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -