ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: DO NOT REPLY [Bug 28046] - Ant includes JARs in working directory
Date Fri, 03 Sep 2004 16:33:36 GMT
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..

Peter

>No? --DD
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message