Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 34E14DDE8 for ; Tue, 20 Nov 2012 05:06:35 +0000 (UTC) Received: (qmail 55282 invoked by uid 500); 20 Nov 2012 05:06:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 54230 invoked by uid 500); 20 Nov 2012 05:06:24 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 54198 invoked by uid 99); 20 Nov 2012 05:06:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2012 05:06:23 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2012 05:06:17 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 41ADD28985DA for ; Tue, 20 Nov 2012 06:05:54 +0100 (CET) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t15jZseNLwPJ for ; Tue, 20 Nov 2012 06:05:46 +0100 (CET) Received: by samaflost.de (Postfix, from userid 1000) id B82D128985DC; Tue, 20 Nov 2012 06:05:46 +0100 (CET) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: zip from zip with mappers References: Date: Tue, 20 Nov 2012 06:05:46 +0100 In-Reply-To: (Patrick Martin's message of "Mon, 19 Nov 2012 13:39:25 +0100") Message-ID: <87sj84x3rp.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Virus-Checked: Checked by ClamAV on apache.org On 2012-11-19, Patrick Martin wrote: > I have a situation where I need to create an archive (zip) from an other > one, but transforming some path inside. I want to avoid using a temporary > folder structure as the input files contains a huge amount of entries > (about 125000...) and this generates quite a lot of I/Os. > I was thinking of using and . However, as does not > support , it is not possible directly. > So I thought of using the resource collection: > > > > /> > > > The mapping is done quite fast but then zip is reeaaally slow (can be seen > when running in verbose mode). Yes, this is a known problem with the way Ant deals with zipfileset. > My guess is that Ant will look for each resource individually and thus > scan the source zip each time. It's even worse. The ZIP file will be reopened and the central directory re-parsed every time an entry is read. This is avoided by special code inside the zip task when the zipfileset is nested directly into the task. > Is there any other possibility to achieve zip to zip transfer with mapping > / transformation (and filtering with include/exclude patterns) ? > Or is there any way to add support in ? Filtering should work by using zipfileset directly. As for mapping, I'm afraid there is no real solution - apart from coding the ZIP creation directly in Java. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org