Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10123 - /usr/bin/ant (1.5) CLASSPATH is hard-coded (maybe java-config issue)
Summary: /usr/bin/ant (1.5) CLASSPATH is hard-coded (maybe java-config issue)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-03 02:35 UTC by Tom von Schwerdtner
Modified: 2003-02-04 19:42 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 Tom von Schwerdtner 2002-11-03 02:35:14 UTC
Logic seems to go like this (early in the script):

If ~/.gentoo/java-env is there, source it...

else set CLASSPATH=`java-config --classpath`

So, ant will never have access to anything inside the ${CLASSPATH} since it
overwrites it.


The real problem might be with java-config.  Should 'java-config --classpath'
return the system classpath?  'java-config --set-system-classpath=package' does
not change the output of 'java-config --classpath'.
Comment 1 Tom von Schwerdtner 2002-11-03 02:40:56 UTC
To clarify if needed:

I cant seem to find a way to make a package available to ant aside from editing
ant's package file and adding it to the CLASSPATH in there.  the env's CLASSPATH
has no effect because it is overwritten.  Removing the CLASSPATH=`java-config
--classpath` line fixes this issue.  

I may not be doing something right.  If that is the case, please inform me.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-11-03 11:05:15 UTC
This, afaict, is fixed in ant-1.5.1 and later; I just marked it as "stable", so
yo u probably want to upgrade.
Comment 3 Tom von Schwerdtner 2002-11-04 18:40:26 UTC
I dont believe so (I've been using 1.5.1 anyways).  The CLASSPATH in the env is
ignored as far as I can tell, which is the problem....either that or
'java-config --classpath' should return the system classpath and not just the
path to rt.jar.

Also see bug #10061 (dupe).