ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.kitt.rei...@gmail.com>
Subject Re: Pass multiple directories to -lib option
Date Thu, 23 Apr 2009 09:28:59 GMT
I think that
ant -f saxon.xml -lib C:\jlib
should also work (untested).

Peter


On Wed, Apr 22, 2009 at 6:48 PM, Michael Ludwig <milu71@gmx.de> wrote:
> 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
>
>

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


Mime
View raw message