ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Adding multiple external JARS using Ant
Date Wed, 30 Sep 2009 11:51:04 GMT
 

-----Original Message-----
From: not4google [mailto:kapil.x.johri@jpmorgan.com] 
Sent: Wednesday, September 30, 2009 1:41 PM
To: user@ant.apache.org
Subject: RE: Adding multiple external JARS using Ant

/*
Thanks for the info but what I needed was to add all JARS within a directory
rather than specifying each one if thats possible?
*/

wildcards are not allowed in manifest context, see =

http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html
"...
The CLASSPATH environment variable is not treated any differently from the -classpath
(or -cp) command-line option. That is, wildcards are honored in all these cases.
However, class path wildcards are not honored in the Class-Path jar-manifest header.
..."


maybe, putting your jars into root of directory-name (recursion will not work probably)
and =

<manifest>
  ...
  <attribute name="Class-Path" value="directory-name" />
...
</manifest>

will work !?  never used it ..


Regards, Gilbert


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


Mime
View raw message