Bug 144792

Summary: antRun not found
Product: [openSUSE] SUSE Linux 10.1 Reporter: Sonja Krause-Harder <skh>
Component: JavaAssignee: Daniel Bornkessel <dbornkessel>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: testcase

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.