ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefán Freyr Stefánsson <stef...@althingi.is>
Subject Specify a FileSet as a string (in manifest sub-element of the jar task)
Date Fri, 19 Sep 2003 14:46:47 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry for the cryptic subject line.

The problem that I'm facing is that I need to set a manifest entry 
("Class-Path") to a jar file that I'm creating.  The class path entry in the 
manifest file should contain the names of all the files that are in my lib/ 
directory.

Now my question is if something like the following is possible:

<fileset id="libs" dir="${lib.dir}">
  <include name="*.jar"/>
</fileset>

<target ...>
  <jar ...>
    <manifest>
      <attribute name="Class-Path" value="${libs}"/>
    </manifest>
  </jar>
</target>

As I understand, the Class-Path attribute of the manifest file must contain a 
space seperated list of the jar files that it references... so if I would 
have lib1.jar and lib2.jar in my lib directory I'd have to have the following 
Class-Path attribute in my manifest file (given that I copy those jar files 
to the correct location):
Class-Path: lib1.jar lib2.jar

Does anybody have a clue what I could do to be able to construct this 
Class-Path string dynamically?

Kind regards,
    Stefan Freyr.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iQEVAwUBP2sW170ge6mq4AL2AQK91AgAmMgxaOUdHzisIUek+968Bs3wLSi7EHYK
vGpfdJlLcM1m+xZGIB/1+VMAcZNhMW/5yqkiy8ywhuFj4pNXTRqnD8TLY0rGQhIu
8d/fB/CXyIZRyh7s/YiE7VmliT8V3vQNVp+KK+oCF0nL1juVh6iN4CwsN+Hy6ZYO
YH+4jLjj4SLazjvCPCgLQ3MBKyc3kqEt3cyW5FyWGb2ISNtlfVCPW80124ij8BdD
VRIOSCoCxnK+iMZgSb7gElpvfxej13Bn0tB9xkSwVzEiBpiAJEKcnUxNRnFCIFhF
kgp8+AWsTuEJA1GVrVKbyDveP2LgXKEnS4yQo8CR77gO/945BLCbUg==
=OmO0
-----END PGP SIGNATURE-----


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


Mime
View raw message