Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56127 - dev-java/ant-1.6.1: Edited 'ant' shell script is incompatible with original
Summary: dev-java/ant-1.6.1: Edited 'ant' shell script is incompatible with original
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-05 05:27 UTC by Ernst de Haan
Modified: 2004-07-29 08:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst de Haan 2004-07-05 05:27:03 UTC
The ant shell script installed in /usr/bin/ by the ebuild dev-java/ant-1.6.1-r1 ebuild is incompatible with the original ant shell script shipped with Ant 1.6.1. The first difference I noticed is that the -lib option is effectively ignored.

To fix this, copy the ant shell script that came with the distribution to /usr/bin and try again. Then it works.

Reproducible: Always
Steps to Reproduce:
1) Install the ebuild dev-java/ant-1.6.1-r1
2) Download http://xins.sf.net/xins-0.188.tgz
3) Unpack it in your home directory
4) Execute 'ant -lib lib checkstyle'
Actual Results:  
Error

Expected Results:  
Checkstyle docs are generated
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-23 14:30:00 UTC
should be fixed in 1.6.2-r1
if you could test it, that'd be great
Comment 2 Ernst de Haan 2004-07-29 05:18:31 UTC
Things still don't seem to work well. This is what happens when I change from a downloaded Ant to the Ant from Portage:

bash-2.05b$ ant -version
Apache Ant version 1.6.1 compiled on February 12 2004
bash-2.05b$ echo $PATH
/bin:/home/ernst/apache-ant-1.6.1/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/X11R6/bin:/usr/kde/3.2/bin:/opt/sun-jdk-1.4.2.05/bin:/home/ernst/xins-0.197/src/bin
bash-2.05b$ PATH=/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/X11R6/bin:/usr/kde/3.2/bin:/opt/sun-jdk-1.4.2.05/bin:/home/ernst/xins/src/bin
bash-2.05b$ ant -version
Apache Ant version 1.6.2 compiled on July 28 2004
bash-2.05b$ ant -lib lib checkstyle
Buildfile: build.xml

-checkstyle-task:

-prepare-checkstyle:

checkstyle-xml:
    [mkdir] Created dir: /home/ernst/xins/build/checkstyle
    [mkdir] Created dir: /home/ernst/xins/build/checkstyle/xml

BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap

Total time: 4 seconds
bash-2.05b$ ls lib/
CVS                         commons-logging.jar  jdom.LICENSE   log4j.jar
apache.LICENSE              commons-net.LICENSE  jdom.jar       servlet.jar
checkstyle.LICENSE          commons-net.jar      jsch.LICENSE   xmlenc.LICENSE
checkstyle.jar              j2h.LICENSE          jsch.jar       xmlenc.jar
commons-httpclient.LICENSE  j2h.jar              junit.LICENSE
commons-httpclient.jar      jakarta-oro.LICENSE  junit.jar
commons-logging.LICENSE     jakarta-oro.jar      log4j.LICENSE
bash-2.05b$ emerge -s ant-optional

*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.

Searching...
[ Results for search key : ant-optional ]
[ Applications found : 1 ]

*  dev-java/ant-optional [ Masked ]
      Latest version available: 1.6.2-r1
      Latest version installed: 1.6.2-r1
      Size of downloaded files: 6,134 kB
      Homepage:    http://ant.apache.org/
      Description: Apache ANT Optional Tasks Jar Files
      License:     Apache-2.0
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-29 08:22:48 UTC
my mistakes -r1 stilled used to old wrapper script, 
-r2 should be fully compatible with the original

and xins works for me with it