ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Upshall" <rupsh...@psasoft.com>
Subject Ant, jars and Manifest
Date Thu, 31 Jan 2002 22:51:56 GMT
Is there anyway in ant to specify the the values of a Manifest.mf file using
a task.
ie. something like:

<jar jarfile="${dist}/lib/${project}.jar" basedir="${build}">
    <manifest>
        <version>1</version>
        <main-class>com.something.Driver</main-class>
        <class-path>
            <fileset dir="${depen}" casesensitive="yes" >
                    <patternset>
                        <include name="**/*.jar"/>
                    </patternset>
                </fileset>
          </class-path>
    </manifest>
</jar>

Is there any way to do this or do I have to create the Manifest file and use
it on the jar task as a properity?
ie. (like i'm currently doing):
<jar jarfile="${dist}/lib/${project}.jar" basedir="${build}"
manifest="./Manifest.mf"/>

<--Manifest.mf-->
Manifest-Version: 1.0
Main-Class: com.somethingDriver
Class-Path:  ./jar1.jar ./jar2.jar
<--Manifest.mf-->

I basicly want to be able to drop any dependent jars into the depen
directory and have them coppied into the lib directory on my dist and
included in the classpath automaticly.

Robert Upshall
Professional Software of Amarillo
(806) 358-8928
rupshall@psasoft.com



--
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