I changed my script to: <project name="test">
<target name="run"> <exec executable="cmd"> <arg line="/c ${ant.home}/bin/ant -f ${ant.file} clean"/> </exec> </target> <target name="clean"> <echo message="CLEAN"/> </target> </project> And started "ant run".( http://ant.1045680.n5.nabble.com/file/n5633602/log2.txt log2.txt ). But nothing changed :( I found that new invoke_targets list saving old information Setting ro project property: ant.project.invoked-targets -> run,clean,clean,clean,clean,clean,clean,clean,clean -- View this message in context: http://ant.1045680.n5.nabble.com/Problems-with-exec-task-on-Windows-machine-tp5627489p5633602.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org