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
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to