ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: DO NOT REPLY [Bug 28046] - Ant includes JARs in working directory
Date Sat, 04 Sep 2004 19:14:05 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message