ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Setting filenames in FileSet to value of Class-Path in MANIFE ST.MF
Date Tue, 20 Aug 2002 15:26:45 GMT
See below: --DD

    <!-- Generate Manifest file -->
    <pathconvert property="xxx-classpath-1"
                 pathsep=" ${nl} "
      <map from="${xxx.home}\jar" to="../dsp/jar" />
    <property name="xxx-classpath"
              value="./plugin.jar ${nl} ${xxx-classpath-1}" />

    <copy file="src/com/acme/yyy/Yyy.manifest"
        <filter token="CLASSPATH" value="${xxx-classpath}" />
        <filter token="BUILDNUM" value="${MMdd}" />

with src/com/acme/yyy/Yyy.manifest:

Main-Class: com.lgc.yyy.Main
Specification-Title: YYY
Specification-Version: 2003.2.0.1
Specification-Vendor: ACME
Implementation-Title: com.lgc.yyy
Implementation-Version: 2003.2.0.1.@BUILDNUM@.01
Implementation-Vendor: ACME
Implementation-Vendor-Id: com.acme

-----Original Message-----
From: Jussi Iinatti [] 
Sent: Tuesday, August 20, 2002 4:42 AM
Subject: Setting filenames in FileSet to value of Class-Path in MANIFEST.MF


I am creating a MANIFEST file and I want to add a Class-Path header
field into it - and have the names of files in a FileSet as a value.

E.g. 'Class-Path: servlet.jar infobus.jar acme/beans.jar'

Is there a way to set a list of files in a FileSet to the value
of the Class-Path header?

<fileset id = "path" dir="/lib">
    <include name="*.jar"/>

<property name  = "ClassPath"
          refid = "path"/>

<manifest file="MANIFEST.MF">
	<attribute name="Class-Path"

But the created manifest file includes something like an ID of an Object:

Manifest-Version: 1.0
Created-By: Apache Ant 1.5

It seems that it makes no sense to use reference of the FileSet here,
but is there a way to get the names of the files in a FileSet?

Any suggestions?

	- Jussi -

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message