ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David TROGDON" <>
Subject manifest problems
Date Mon, 04 Oct 2004 19:49:58 GMT

Following is the "jar" target in my build file

<target name="jar">
            <mkdir dir="${build.filter.dir}/meta-inf"/>
            <copy file="${build.resources.dir}/MANIFEST.MF" todir="
            <jar jarfile="${build.filter.dir}/O2.jar" basedir="
                   <fileset dir="${build.filter.dir}/com/"
                   <fileset dir="${build.filter.dir}/org/"/>
                   <fileset dir="${build.filter.dir}/pv/"/>
                   <fileset dir="${build.filter.dir}/na/"/>
                  <fileset dir="${build.filter.dir}/meta-inf/"/>

            <delete dir="${build.filter.dir}/com"/>
            <delete dir="${build.filter.dir}/org"/>
            <delete dir="${build.filter.dir}/pv"/>
            <delete dir="${build.filter.dir}/na"/>
            <delete dir="${build.filter.dir}/meta-inf"/>
                  <fileset dir="${build.filter.dir}" includes="*.wav,*.gif,
            <antcall target="ISfilter"/>

As you can most likely determine:

In my build directory I:
create a meta-inf directory
copy my file into the directory
jar this directory and and 4 others along with a few files into O2.jar
I then delete everything I just put into the O2.jar

The problem is I end up with TWO files.
One in the O2.jar ROOT that contains the needed classpaths I need and a
second one in the meta-inf directory that is aparantly generated by the jar
function that has no classpaths.

This is what I copy into ${build.filter.dir}/meta-inf/ and ends up in
O2.jar root

Manifest-Version: 1.2
Main-Class: na.biomerieux.stagville.bootstrap.BootStrap
Class-Path: FastObjects_7JC_SDK.jar xreport_lite.jar
 xtools.jar JavaMediaFramework.jar JSEClassLibraries.jar
 jcchart.jar jctable.jar spring.jar spring-dao.jar
 commons-collections-2.0.jar commons-logging.jar
 BCICorba.jar vbjorb.jar lm.jar vbsec.jar

This is what ends up in ${build.filter.dir}/meta-inf/

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: 1.4.1_01-b01 (Sun Microsystems Inc.)

I intially started by specifying the manifest file but ANT truncates the
lines at exactally 70 characters no matter how I format it and the
classpath ends up bad.

Any help on how I might clear this up would be appreciated.

David T.

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

View raw message