ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Celio.Rodrig...@ibs.pt
Subject ANT 1.6.1. Error during JAR Task.
Date Tue, 23 Mar 2004 12:29:59 GMT
Hello all,

        I am getting the following error when i run ant with the jar task.


<target name="domanifest">
        <manifest file="${src}/META-INF/MANIFEST.MF">
            <attribute name="Built-By" value="${user.name}"/>
            <section name="common">
              <attribute name="Specification-Title" value="spec-title"/>
              <attribute name="Specification-Version" value="${version}"/>
              <attribute name="Specification-Vendor" value="spec-vendor"/>
              <attribute name="Implementation-Title" value="imp-title"/>
              <attribute name="Implementation-Version" value="db01"/> 
              <attribute name="Implementation-Vendor" value="imp-vendor"/>
            </section>
            <section name="common/class1.class">
              <attribute name="Sealed" value="false"/>
            </section>
          </manifest>
</target>
<target name="jarit" depends="domanifest">
        <!--Compile Project -->
        <jar
                destfile="uniiface.jar"
                basedir="${src}"
                excludes="**/*.java"
                manifest="${src}/META-INF/MANIFEST.MF"
        > 
        </jar> 
</target>

jarit:
      [jar] error while reading original manifest: invalid END header (bad 
central directory size)

On the first run this message does not apear. but on the second run yes.

Also the created jar file doesn't work on one following compile task, but 
here the compile only fails because of missing classes that are in the jar 
file

i am running ant with IBM JDK 1.3.0

Any clues?


Best regards / Melhores Cumprimentos 
Celio Rodrigues
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message