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.

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

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

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

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hiwa
    Replies:
    3
    Views:
    8,479
    John C. Bollinger
    Jan 15, 2004
  2. skydvr
    Replies:
    1
    Views:
    5,299
    Frank Buss
    Nov 5, 2004
  3. Replies:
    2
    Views:
    2,993
    Roedy Green
    Oct 31, 2005
  4. Nick de Graeve
    Replies:
    0
    Views:
    10,931
    Nick de Graeve
    Nov 8, 2005
  5. Mike Schilling

    Classpath in Jar manifest

    Mike Schilling, Nov 28, 2010, in forum: Java
    Replies:
    1
    Views:
    731
    Roedy Green
    Dec 2, 2010
Loading...

Share This Page