Looking at the code it appears the -lib option finds jars, so you would simply use -lib C:\jlib\ . You can also specify a path, e.g. -lib C:\jlib\;C:\klib\ . If you want to specify jars explicitly you should be able to use -cp path-to-foo.jar;path-to-bar.jar .
HTH, Matt --- On Tue, 4/21/09, Michael Ludwig <mil...@gmx.de> wrote: > From: Michael Ludwig <mil...@gmx.de> > Subject: Re: Pass multiple directories to -lib option > To: "Ant Users List" <user@ant.apache.org> > Date: Tuesday, April 21, 2009, 5:03 PM > Matt Benson schrieb am 21.04.2009 um > 05:37:17 (-0700): > > > > You should probably try embedding your paths, with > semicolons, in > > double quotes. Your command shell may be > interpreting the semicolons > > as statement terminators. > > Using semicolons as the pass seperator would make sense on > Windows, > where semicolons aren't statement terminators; you can say > "echo a;b;c" > in cmd.exe, so the problem wouldn't arise. > > But -lib seems to take only one argument, so the path > seperator issue > doesn't come in here. Use multiple -lib options, that > works. > > ant -f saxon.xml -lib c:\jlib\saxon9-ant.jar -lib > C:\jlib\saxon9.jar > > Michael Ludwig > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org