Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 10061

Summary: /usr/bin/ant disregards CLASSPATH
Product: Gentoo Linux Reporter: Bardur Arantsson <bugs-gentoo.org>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bardur Arantsson 2002-11-01 13:09:43 UTC
The /usr/bin/ant script from ant 1.5 (and 1.5.1) resets the $CLASSPATH  
variable without regard to the $CLASSPATH set in the environment. Obviously,  
the script should respect the $CLASSPATH which has been set by the user.  
  
Fixing this (for both 1.5 and 1.5.1) should be trivial: Just don't override  
the environment $CLASSPATH if it has been set by the user.  
  
(And yes, I am aware that one can create a ~/.gentoo/java-env containing a  
CLASSPATH, but that is no reason to ignore $CLASSPATH in the environment.  
~/.gentoo/java-env is not exactly useful unless *all* your development  
machines are Gentoo. Additionally, setting the environment is much easier to  
do dynamically).
Comment 1 Adrian Almenar 2002-11-18 12:44:35 UTC
Fixed in portage tree as ant-1.5.1-r2 marked as testing.