Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42076 - ant-optional (1.6.0-r3) ebuild does not use the classpath it sets up
Summary: ant-optional (1.6.0-r3) ebuild does not use the classpath it sets up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-18 14:55 UTC by Jens Hilligsøe
Modified: 2004-03-11 12:54 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 Jens Hilligsøe 2004-02-18 14:55:29 UTC
The ant-optional ebuild includes a lot of dependencies, needed to compile the optional features of ant, and the ebuild does set up a CLASSPATH, so the ant build would know where to find the optional packages. Except after the bootstrapping the compilation changes to be a ant build ant Ant itself does not care about the system CLASSPATH until told to. This is done with the -lib param ( http://ant.apache.org/manual/running.html#commandline ).

Before being told:

# jar tvf /usr/share/ant/lib/ant-junit.jar
     0 Wed Feb 18 23:43:36 CET 2004 META-INF/
   432 Wed Feb 18 23:43:34 CET 2004 META-INF/MANIFEST.MF
     0 Wed Feb 18 23:43:26 CET 2004 org/
     0 Wed Feb 18 23:43:26 CET 2004 org/apache/
     0 Wed Feb 18 23:43:30 CET 2004 org/apache/tools/
     0 Wed Feb 18 23:43:30 CET 2004 org/apache/tools/ant/
     0 Wed Feb 18 23:43:30 CET 2004 org/apache/tools/ant/taskdefs/
     0 Wed Feb 18 23:43:30 CET 2004 org/apache/tools/ant/taskdefs/optional/
     0 Wed Feb 18 23:43:30 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/
     0 Wed Feb 18 23:43:30 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/xsl/
 30146 Wed Feb 18 23:43:30 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
 20263 Wed Feb 18 23:43:30 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl


The correct ant-junit.jar contains a lot more files - Including the actual files    
needed to run JUint from ant:

# jar tvf /usr/share/ant/lib/ant-junit.jar
     0 Wed Feb 18 23:51:50 CET 2004 META-INF/
   432 Wed Feb 18 23:51:48 CET 2004 META-INF/MANIFEST.MF
     0 Wed Feb 18 23:51:40 CET 2004 org/
     0 Wed Feb 18 23:51:40 CET 2004 org/apache/
     0 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/
     0 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/
     0 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/
     0 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/
     0 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/
     0 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/xsl/
   685 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer$Format.class
  5356 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.class
   876 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/ArrayEnumeration.class
  2633 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/BaseTest.class
  4348 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/BatchTest.class
  4802 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.class
   931 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/CompoundEnumeration.class
   294 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/DOMUtil$NodeFilter.class
   896 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/DOMUtil$NodeListImpl.class
  4899 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.class
   888 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/Enumerations.class
   700 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/FormatterElement$TypeAttribute.class
  4765 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.class
   509 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/JUnitResultFormatter.class
   919 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/JUnitTask$1.class
   997 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/JUnitTask$SummaryAttribute.class
 22276 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.class
  4100 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.class
 12028 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.class
  2125 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/JUnitVersionHelper.class
  5664 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.class
  3754 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/SummaryJUnitResultFormatter.class
   984 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/XMLConstants.class
  7250 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/XMLJUnitResultFormatter.class
  8127 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.class
  2095 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/Xalan2Executor.class
  3512 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.class
 30146 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
 20263 Wed Feb 18 23:51:44 CET 2004 org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl



The fix is small - Change the line
./build.sh -Ddist.dir=${D}/usr/share/ant || die
to
./build.sh -Ddist.dir=${D}/usr/share/ant -lib ${CLASSPATH} || die

With this my ant builds are quiet a bit more happy about the <junit> tasks.
Comment 1 Jens Hilligsøe 2004-02-18 15:07:48 UTC
This lack of this does only seem to have affected the junit part of ant-optional, as far as I can determine.
Comment 2 Adrian Almenar 2004-02-18 19:00:17 UTC
Ok, ill give it a try and keep you informed.
Comment 3 Adrian Almenar 2004-02-18 20:00:12 UTC
i checked my ant-junit.jar and i see all the files you last mentioned.

I will investigate more on this issue since it looks to me it working ok.
Comment 4 Chris Aniszczyk (RETIRED) gentoo-dev 2004-03-11 12:54:14 UTC
Try about ant 1.6.1 ebuild, I'm unable to replicate this with 1.6.1 so I'll assume it's fixed unless you say otherwise. Reopen this bug then and I'll look into it further. Thanks!