Bug 49128 - <exec> doesn't work in ant (missing antRun)
Bug#: 49128 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: java@gentoo.org Reported By: webmaster@refstart.nl
Component: Ebuilds
URL: 
Summary: <exec> doesn't work in ant (missing antRun)
Keywords:  
Status Whiteboard: 
Opened: 2004-04-26 23:22 0000
Description:   Opened: 2004-04-26 23:22 0000
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 From Andrew Roberts 2004-05-01 07:21:05 0000 -------
Created an attachment (id=30448) [details]
Sample build.xml file

Can't verify this bug. Sample build.xml with <exec> works fine.
Suggest invalid.

------- Comment #2 From Karl Trygve Kalleberg (RETIRED) 2004-06-02 13:28:18 0000 -------
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 From Niek van der Maas 2004-06-02 23:12:22 0000 -------
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 From Niek van der Maas 2004-06-02 23:12:53 0000 -------
Created an attachment (id=32565) [details]
Sample build.xml file

------- Comment #5 From Todd de Gruyl 2004-06-12 09:18:48 0000 -------
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 From Karl Trygve Kalleberg (RETIRED) 2004-06-12 10:56:22 0000 -------
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.