ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <mil...@gmx.de>
Subject Re: Pass multiple directories to -lib option
Date Wed, 22 Apr 2009 17:48:48 GMT
Felix Dorner schrieb am 22.04.2009 um 09:46:40 (+0200):
> 
> > > The 'help' output and the manual say:
> > >    "-lib <path>            specifies a path to search for jars and
> > > classes"
> > > 
> > > I had a look into the source code: the <path> is a real path: it is 
> > > tokenized by File.pathSeparator and each token is added to Ants 
> > > classpath.
> > 
> > I didn't have a look into the source code, but tokenizing the 
> > path by the path seperator in order to add each token to the 
> > classpath wouldn't make any sense at all.
> > 
> >   a/b/c -> a b c
> 
> Make sure not to confuse File.separator and File.pathSeparator (Which
> I guess caused a million hours of work in the Java World. Not happy
> with those names..)

Oops ... :-) Thanks for bringing this gotcha to my attention.

This, however, doesn't work:

  ant -f saxon.xml -lib C:\jlib\saxon9-ant.jar;C:\jlib\saxon9.jar

Whereas this does:

  ant -f saxon.xml -lib C:\jlib\saxon9-ant.jar -lib C:\jlib\saxon9.jar

Michael Ludwig

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


Mime
View raw message