Bugzilla – Bug 144792
antRun not found
Last modified: 2006-01-25 15:58:42 UTC
With attached build.xml file, ant fails with the error: skh@chomsky:/local/work/anttest> ant Buildfile: build.xml test: BUILD FAILED /local/work/anttest/build.xml:5: Execute failed: java.io.IOException: java.io.IOException: /usr/share/ant/bin/antRun: not found Total time: 1 second To reproduce: copy attached build.xml into a directory run ant in that directory The problematic task seems to be this: <exec executable="echo" dir="." failonerror="true" vmlauncher="false" outputproperty="output-text"> <arg value="Hello" /> </exec> Changing the attribute vmlauncher to "true" makes the error disappear.
Created attachment 64511 [details] testcase
I forgot to add: antRun exists as /usr/bin/antRun, but for some reason ant itself seems to look for it in $ANT_HOME/bin.
Moved script to $ANT_HOME/bin as, according to ant home page, this seems indeed to be the right place. Tested example and it works ... closing bug as fixed.