Bug 144792 - antRun not found
Summary: antRun not found
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Java (show other bugs)
Version: Beta 1
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Daniel Bornkessel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 14:35 UTC by Sonja Krause-Harder
Modified: 2006-01-25 15:58 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
testcase (251 bytes, text/plain)
2006-01-23 14:36 UTC, Sonja Krause-Harder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sonja Krause-Harder 2006-01-23 14:35:36 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.
Comment 1 Sonja Krause-Harder 2006-01-23 14:36:29 UTC
Created attachment 64511 [details]
testcase
Comment 2 Sonja Krause-Harder 2006-01-23 14:37:22 UTC
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.
Comment 3 Daniel Bornkessel 2006-01-25 15:58:42 UTC
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.