Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 99673 invoked from network); 10 Jan 2005 19:30:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jan 2005 19:30:30 -0000 Received: (qmail 92706 invoked by uid 500); 10 Jan 2005 19:30:28 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 92649 invoked by uid 500); 10 Jan 2005 19:30:28 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 92636 invoked by uid 99); 10 Jan 2005 19:30:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.mdli.com (HELO mail.mdli.com) (208.200.221.8) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 10 Jan 2005 11:30:26 -0800 Received: from exch-sl02.mdli.com (exch-sl02.mdli.com [172.16.3.10]) by mail.mdli.com (Postfix) with ESMTP id E92C3B5F99 for ; Mon, 10 Jan 2005 11:30:10 -0800 (PST) Received: from [172.16.46.18] (172.16.46.18 [172.16.46.18]) by exch-sl02.mdli.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id YF0R2MJZ; Mon, 10 Jan 2005 11:30:10 -0800 Message-ID: <41E2D7B9.5000302@mdl.com> Date: Mon, 10 Jan 2005 11:30:01 -0800 X-Sybari-Trust: 565a801b 34710b9d b214df66 0000013d From: "Alexey N. Solofnenko" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: ANT does not seem closing JAR files correctly. References: <41CBD1CA.2000100@mdl.com> <41D0AF14.3060903@mdl.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 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 >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: 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