Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49128 - <exec> doesn't work in ant (missing antRun)
Summary: <exec> doesn't work in ant (missing antRun)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-26 23:22 UTC by Niek van der Maas
Modified: 2004-06-12 10:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Sample build.xml file (build.xml,109 bytes, text/plain)
2004-05-01 07:21 UTC, Andrew Roberts
Details
Sample build.xml file (build.xml,195 bytes, text/xml)
2004-06-02 23:12 UTC, Niek van der Maas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niek van der Maas 2004-04-26 23:22:51 UTC
I'm using ant-1.6.1-r1.
When i try to add a <exec> tag to my build.xml I get this error:

BUILD FAILED
/home/.../build.xml:18: Execute failed: java.io.IOException: java.io.IOException: /usr/share/ant/bin/antRun: not found

The fix:
$ mkdir /usr/share/ant/bin
$ ln -sf /usr/bin/antRun /usr/share/ant/bin/antRun

Reproducible: Always
Steps to Reproduce:
Comment 1 Andrew Roberts 2004-05-01 07:21:05 UTC
Created attachment 30448 [details]
Sample build.xml file

Can't verify this bug. Sample build.xml with <exec> works fine.
Suggest invalid.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-06-02 13:28:18 UTC
I cannot seem to reproduce this bug. If it still persists, can you 
trim down your build.xml file and create a dummy project that can reproduce
it for me and attach it to this bug, then reopen it?
Comment 3 Niek van der Maas 2004-06-02 23:12:22 UTC
First, sorry for the somewhat late reply and incomplete info in my first comment.
Second, I just discovered the bug only seems to occur when the vmlauncher attribute is set to false. I'll upload a test case.

Hope this helps, Niek.
Comment 4 Niek van der Maas 2004-06-02 23:12:53 UTC
Created attachment 32565 [details]
Sample build.xml file
Comment 5 Todd de Gruyl 2004-06-12 09:18:48 UTC
I also see this behavior.  This patch fixed it for me (using ant-1.6.1.ebuild since that's the latest one marked with ~ppc, but I think a similar approach should work for all of the ant ebuilds.)

*** /usr/portage/dev-java/ant/ant-1.6.1.ebuild  Sun May 16 14:49:02 2004
--- ant-1.6.1.ebuild    Sat Jun 12 11:50:12 2004
***************
*** 70,75 ****
--- 70,80 ----
                dobin ${S}/src/script/${each}
        done

+       dodir /usr/share/ant/bin
+       for each in antRun runant.pl runant.py complete-ant-cmd.pl; do
+               dosym /usr/bin/${each} /usr/share/ant/bin/${each}
+       done
+
        insinto /etc/env.d
        doins ${FILESDIR}/20ant
Comment 6 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-06-12 10:56:22 UTC
Fixed. I should've bumped the revision on this, but that's a bit tricky
because of the different platform keywords for 1.6.1 and 1.6.1-r1.

We should collate the two revisions in -r2 soon.