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. So I fixed my build by setting two <presetdef>s to set duplication attribute (can we stop the warning about overriding task definitions in this situation?). This still seems a bug - ANT should not produce broken archives in this situation.

- Alexey.

Stefan Bodewig wrote:

On Mon, 27 Dec 2004, Alexey N. Solofnenko <[EMAIL PROTECTED]>
wrote:



Just found a broken Jar file. "zip -Tf" produced the following
output:

       zip warning: local and central headers differ for (null)
       zip warning:  offset 6--local = ed, central = aa
       zip warning:  offset 7--local = 8b, central = 6e
       zip warning:  offset 8--local = 10, central = 9b

zip error: Zip file structure invalid



Do you get this on all archives? Is there an easy way to reproduce it?

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