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

Bug 43759

Summary: adding items to the classpath
Product: Gentoo Linux Reporter: Robert Schuster <theBohemian>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 31468    

Description Robert Schuster 2004-03-04 17:28:34 UTC
when adding a java-package to the system or user classpath multiple times the jar files is added multi times. I don't think this is a good idea. A hintful message that the package was already in the classpath would be better.

Reproducible: Always
Steps to Reproduce:
1. java-config -B foo
..
.
n. java-config -B foo

Actual Results:  
classpath contains foo.jar n times.

Expected Results:  
classpath contains foo.jar only one time and a helpful message is displayed when
steps 2 to n are executed saying that that foo is already in the classpath.

Highlighting installed packages when doing java-config -l would be nice as well.
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2004-04-12 23:15:01 UTC
I'm working fixing the -B option but patches are appreciated (for highlighting in -l maybe).
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-10-10 14:15:36 UTC
In moving to the new Java environment scheme, setting the system classpath will
most likely be deprecated.

This has been fixed for the -a and -b options (user), however, so I consider this
matter closed.

Reopen with violent objections at your leisure:)