ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: self-executing jar and class-path
Date Mon, 22 Jul 2002 18:46:20 GMT
Use <pathconvert> with a <map> to go from the <fileset> to the Class-Path.
Then substitute the value in an existing Manifest. --DD

    <!-- Generate Manifest file -->
    <pathconvert property="tahoe-classpath"
                 pathsep=" ${nl} "
      <map from="${tahoe.home}${file.separator}jar" to="../dsp/jar" />

    <copy file="src/com/lgc/mowi/Mowi.manifest"
        <filter token="CLASSPATH" value="${tahoe-classpath}" />
        <filter token="BUILDNUM" value="${MMdd}" />

-----Original Message-----
From: Scott Ganyo [] 
Sent: Monday, July 22, 2002 1:22 PM
To: 'Ant Users List'
Subject: self-executing jar and class-path

I'm trying to build a jar that is self-executing.  I need to generate my jar
file's class-path element dynamically based on a fileset that I've
determined by getting all the jar files in a directory.  The problem I've
had is that I need to translate the jar file names from their original
directory to a directory relative to the main jar file.  E.g.
/my/build/path/foo.jar --> lib/foo.jar.



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

View raw message