ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie.Ech...@ubsw.com
Subject jlink caused duplicate entries?
Date Thu, 23 Aug 2001 14:35:00 GMT
Hi,

When I jlink a bunch of jars it seems that the com directory entry is
put in the outfile more than once. The JVM doesn't seem to have a
problem with this, but when I update it with jar I get the following
error:
[h:\autobuild\ldn_test\view\prod_patch\dist]jar u0f SPS.all.jar
c:\temp\Config.Spec
java.util.zip.ZipException: duplicate entry: com/
        at
java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:165)


And when listing the contents of another jar:
jar tf Jetpac-Infra.jar 
....
com/swissbank/businessobjects/adfin/Test.class
java.util.zip.ZipException: invalid stored block lengths
        at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:139)

What can I do about these problems?

The task looks like this:

<target name="makeall">
      <delete file="${dist.file.all.jar}" />
      <jlink outfile="${dist.file.all.jar}">
            <mergefiles>
                       <pathelement path="${all.classpath}"/>           
      
            </mergefiles>
      </jlink>
</target>

Thanks, jamie






Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


Mime
View raw message