Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 57255 invoked from network); 26 Nov 2008 15:33:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2008 15:33:09 -0000 Received: (qmail 59409 invoked by uid 500); 26 Nov 2008 15:33:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 59378 invoked by uid 500); 26 Nov 2008 15:33:16 -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 59367 invoked by uid 99); 26 Nov 2008 15:33:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 07:33:16 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.25.87.29] (HELO compucredit.com) (69.25.87.29) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 15:31:47 +0000 Received: from ([10.24.56.6]) by mail4.compucredit.com with ESMTP id 5503069.135903682; Wed, 26 Nov 2008 10:32:13 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Zip files: elegant way of remapping directories while extracting? Date: Wed, 26 Nov 2008 10:32:12 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Zip files: elegant way of remapping directories while extracting? thread-index: AclP3CdkjalCGRFtR/iNVRMo7z5jqw== From: "Brown, Carlton" To: Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C94FDC.27B5C3E9" X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C94FDC.27B5C3E9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am wondering how I can extract selected directores from a zip file=0D=0Aw= hile performing granular re-mapping of multiple directories=2E I have=0D= =0Atried various techniques with but cannot find the case I'm=0D=0A= looking for=2E=0D=0A=0D=0AThe task allows the simple convenience re-m= apping of directory=0D=0Astructures by using a nested with the= prefix attribute=2E=0D=0AHowever, the task is not the inverse of t= he =2E It is=0D=0Atreated as a special case of copy, requiring the u= se of patternsets and=0D=0Amappers (along with the benefits and limitations= thereof)=2E Thus,=0D=0Acertain complex mappings that can be done with cannot conversely=0D=0Abe done in an =2E Or so it appears to m= e=2E=0D=0A=0D=0AFor example, I have a zip file whose output needs to be map= ped as=0D=0Afollows:=0D=0A=0D=0A/en/html -> /root=0D=0A/en/jsp -> /root=0D= =0A/static/pdf -> /root/pdf=0D=0A=0D=0AThe third mapping is different from = the first two=2E Multiple mappers=0D=0Awould be needed to accomplish this= , but it is not possible to nest=0D=0Amultiple mappers within a an = or (except in a chain, which=0D=0Aoperates on all files, not just se= lected ones)=2E=0D=0A=0D=0AHere is my fantasy code that would accomplish th= e as elegantly=0D=0Aas the can be peformed in actuality:=0D= =0A=0D=0A =0D=0A =0D=0A =0D=0A=0D=0A=0D=0AHave I missed some actual way of doi= ng this in a simple and elegant=0D=0Afashion? Otherwise I'm forced to unzi= p the entire archive and perform=0D=0Amany tasks at a granular level= to perform the restructure=2E=0D=0A=0D=0AThanks in advance,=0D=0ACarlton= =0D=0A=0D=0A=0D=0A=0D=0A-----------------------------------------=0D=0A=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=0D=0AThis message contains PRIVILEGED and CONFIDENTIAL=0D=0Ainformation= that is intended only for use by the =0D=0Anamed recipient=2E If you are n= ot the named recipient,=0D=0Aany disclosure, dissemination, or action based= on =0D=0Athe contents of this message is prohibited=2E In such=0D=0Acase p= lease notify us and destroy and delete all =0D=0Acopies of this transmissio= n=2E Thank you=2E=0D=0A=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------_=_NextPart_001_01C94FDC.27B5C3E9--