Ant generating Classpath manifest entry

Discussion in 'Java' started by Juergen Weber, Nov 4, 2003.

  1. Hi,

    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,
    Juergen Weber, Nov 4, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.