Peter Reilly wrote:

Dominique Devienne wrote:

Well, -lib is not a classpath. It's more like java.ext.dirs, i.e.
all JARs in these directories are picked up. This makes it a lot
more convenient than having to specify a full classpath.

That said, since -lib is also used to pass in the user CLASSPATH,
it shouldn't change the meaning of the classpath, as Peter
pointed out.

So basically we should leave -lib as-is, and introduce a new -cp
(or -classpath or both) to pass in a true class path, and change
the launcher script to do -cp %CLASSPATH% (or -cp "$CLASSPATH").


Exactly, -cp could be the the name to use instead of -lib "$CLASSPATH".


-cp would not a user visible option, it would be set in the the ant[.bat] file
and removed in Launcher.java.


Laucher.java would check that it is only set once.

I have the changes ready to commit, if people think this is good idea..

+1.

this is a good solution. we could tell people off for having a . in their Classpath, too :)


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to