Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 33765 invoked from network); 9 Dec 2004 12:12:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 12:12:15 -0000 Received: (qmail 87074 invoked by uid 500); 9 Dec 2004 12:12:03 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 86764 invoked by uid 500); 9 Dec 2004 12:12:02 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 86743 invoked by uid 99); 9 Dec 2004 12:12:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.elca.ch (HELO mail.elca.ch) (193.72.144.2) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 09 Dec 2004 04:12:01 -0800 Received: from exchange.elca.ch (unverified) by mail.elca.ch (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Thu, 9 Dec 2004 13:11:57 +0100 Received: from pcyma.elca.ch.elca.ch (pcyma.elca.ch [10.10.10.112]) by exchange.elca.ch with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 4P3HRPHJ; Thu, 9 Dec 2004 13:11:23 +0100 From: Yves Martin To: user@ant.apache.org Subject: Strange behavior of 'zip' Organization: ELCA Informatique Date: Thu, 09 Dec 2004 13:12:23 +0100 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, I find the behavior of 'zip' strange when writing my build.xml. So I extracted a test case: What is the problem ? If newfile.zip already exists with 'file3' inside, 'file3' remains because 'zip' seems to work in 'append' mode only. And there is no way to make it create a new empty zip file if the destfile already exists. OK, I will do a 'delete' first. It is a work-around. But I may find it useful to document this behavior and maybe to add a flag to force new zip file creation. Regards, -- Yves Martin --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org