ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: ANT does not seem closing JAR files correctly.
Date Tue, 11 Jan 2005 17:11:34 GMT
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 <A.Solofnenko@mdl.com>
>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:
>
>[bodewig@bodewig tmp]$ cat zip.xml 
><project>
>  <zip destfile="test.zip">
>    <fileset dir="." includes="zip.xml"/>
>    <fileset dir="." includes="zip.xml"/>
>  </zip>
></project>
>[bodewig@bodewig tmp]$ ant -f zip.xml 
>Buildfile: zip.xml
>      [zip] Building zip: /tmp/test.zip
>
>BUILD SUCCESSFUL
>Total time: 2 seconds
>[bodewig@bodewig 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: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>  
>

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message