ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27874] New: - Jar task: error.
Date Tue, 23 Mar 2004 17:16:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27874>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27874

Jar task: error.

           Summary: Jar task: error.
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: celio.rodrigues@ibs.pt


Hello,

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

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


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

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?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message