So something was special in my case... I can try to reproduce the jar. There are many copyrighted files involved. Should I sent the jar to you?

- Alexey.

Stefan Bodewig wrote:

On Mon, 10 Jan 2005, Alexey N. Solofnenko <[EMAIL PROTECTED]>
wrote:



After some research I found that I had the same file twice in a JAR
(two inner filesets were referencing the same file - this is an
interesting situation too - fileset joining would behave
better). There is a bug already that inclusion of the same file
breaks ANT.



I only recall a bug report where having the same file twice inside the same archive breaks Java WebStart, the archive was technically valid. Do you have the bug number? Maybe you are talking about a different report than me.



This still seems a bug - ANT should not produce broken archives in
this situation.



I completely agree with you and I don't think Ant does:

[EMAIL PROTECTED] tmp]$ cat zip.xml <project>
<zip destfile="test.zip">
<fileset dir="." includes="zip.xml"/>
<fileset dir="." includes="zip.xml"/>
</zip>
</project>
[EMAIL PROTECTED] tmp]$ ant -f zip.xml Buildfile: zip.xml
[zip] Building zip: /tmp/test.zip


BUILD SUCCESSFUL
Total time: 2 seconds
[EMAIL PROTECTED] tmp]$ zip -Tv test.zip test.zip: found a preamble of 119 bytes
Archive: test.zip
testing: zip.xml OK
testing: zip.xml OK
No errors detected in compressed data of test.zip.
test of test.zip OK


Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- ------------------------------------------------------------------------ / Alexey N. Solofnenko MDL Information Systems, Inc. work: 510-357-2222x1726 /

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to