Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Ant generating Classpath manifest entry

Thread Tools

Ant generating Classpath manifest entry

Juergen Weber
Posts: n/a

I want to have a reference to needed referenced jars in the manifest
of a jar created by ant.

<attribute name="Classpath" value="${somelibs}"/>

How do I get the names of all the files in a fileset into a property
${somelibs} ?

I tried

<pathconvert pathsep=" " property="somelibs" refid="my.fileset">

but this leaves the complete path, but there should only be the
filename part.
I tried in vain

<map from="${env.HOME}\${lib}" to=""/>

Thank you,
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classpath in Jar manifest Mike Schilling Java 1 12-02-2010 10:43 PM
How to generate relative classpath for manifest with Ant Nick de Graeve Java 0 11-08-2005 01:00 PM
JavaService: Use classpath from manifest? Java 2 10-31-2005 03:47 AM
Manifest file and Classpath issue skydvr Java 1 11-05-2004 10:47 AM
Ant Task to Read From Manifest RyanC Java 2 01-23-2004 12:17 AM