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.
Comments
Post a Comment