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-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org