ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jussi Iinatti" <jussi.iina...@emillion.fi>
Subject Setting filenames in FileSet to value of Class-Path in MANIFEST.MF
Date Tue, 20 Aug 2002 09:41:33 GMT
Hi.

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"/>
</fileset>

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

<manifest file="MANIFEST.MF">
	<attribute name="Class-Path"
                 value="${ClassPath}"/>
</manifest>
***

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

***
Manifest-Version: 1.0
Created-By: Apache Ant 1.5
Class-Path: org.apache.tools.ant.types.FileSet@281d4b
***

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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message