You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Peter Donald <do...@apache.org> on 2001/07/04 16:48:10 UTC

Re: [Bug 1126] - bin\lcp.bat prepends Ant libraries to user's path

On Thu,  5 Jul 2001 00:05, bugzilla@apache.org wrote:
> + Is there any reason to *not* implement the requested change?  The comment
> in the + ant script indicates it was changed to reflect the behaviour in
> the Windows + version (always prepend the jars to the classpath rather than
> append), but + according to this report, that wasn't always the case.

The reason not to do it is that it inhibits using ant with no CLASSPATH set 
because it can lead to empty entries at start of CLASSPATH var. The way it 
works now puts the possibly empty entries at end of CLASSPATH. Some JVMs stop 
reading CLASSPATH entries at first empty entry and thus would never see any 
of later entrys.

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*