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


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to