ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MOUSSAUD Benoît <benoit.mouss...@criltelecom.com>
Subject Zip task does not handle dates correctly.more information
Date Tue, 24 Apr 2001 17:37:17 GMT
I have made some researches:
1: there is a bug id on the java database on java.sun.com ID#4353705
http://developer.java.sun.com/developer/bugParade/bugs/4353705.html
The symptom are nearly the same.
2: if i set build.compiler=classic or jikes it is ok but if
build.compiler=modern i have the internal error !
env: jdk1.3 on win2k professionnal
Benoit
There is maybe a problem when the jar file is built using to other one:
different version of jar tool used ? problem when paste different part of
the file ?

Benoit Moussaud

-----Message d'origine-----
De : MOUSSAUD Benoît 
Envoyé : mardi 24 avril 2001 19:18
À : ant-dev@jakarta.apache.org
Objet : Zip task does not handle dates correctly.


I am using your lastesr version of Jar,Zip,... tasks
i have a target like this:
    <target name="merge-server" depends="prepare">        
        <jar jarfile="${tools.srv}" manifest =
"${rsc.dir}/META-INF/tools.mf" >
          <zipfileset src="${lib.dir}/tools1.jar" excludes="**/MANIFEST.MF"
/>
          <zipfileset src="${lib.dir}/tools2.jar" excludes="**/MANIFEST.MF"
/>
        </jar>
    </target>

This target merge two jarfiles excluding their manifest file.

The problem comes when i am using the produced jar with <javac> with ANT.
The stack trace (incomplete) looks like:
compile:
     [echo] compile java files for the project server
    [javac] Compiling 34 source files to W:\FRAMEWORK\CORE\SERVER\classes
    [javac] An exception has occurred in the compiler (1.3.0). Please file a
bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugrepo
rt.cgi).  Include your program and the following diagnostic in your report.
Thank you.
    [javac] java.lang.IndexOutOfBoundsException
    [javac]     at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:121)
    [javac]     at
com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:981)
    [javac]     at
com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:952)
    [javac]     at
com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
....

Note: with jike compile , it is okay !

Any ideas ?

Regards
Benoit

-------------------------------------------------
Benoit Moussaud - benoit.moussaud@criltelecom.com
CTS - Cril Telecom Software
http://www.criltelecom.com
8 rue danjou
92517 Boulogne Billancourt - France
Tel: 01 58 17 04 78


Mime
View raw message