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 22B052DDA for ; Sat, 7 May 2011 21:00:40 +0000 (UTC) Received: (qmail 30359 invoked by uid 500); 7 May 2011 21:00:39 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 30283 invoked by uid 500); 7 May 2011 21:00:38 -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 30275 invoked by uid 99); 7 May 2011 21:00:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 May 2011 21:00:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of benztu@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pw0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 May 2011 21:00:33 +0000 Received: by pwi6 with SMTP id 6so2372268pwi.4 for ; Sat, 07 May 2011 14:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=JQfswCQXC7DvP/N7IvXB5KyWuuwDJzH2UuOZwtpmvTw=; b=BwR/6CMYreMuK4Cx+lE0tzMwQ+xBW+G48OD3biu9aJpd8duV3nZSSbrdMg5YOozobI 97Yrb1Js7hirrMDj2LtTB+sAXLg0dLwLHFWoaX2K9rWd256aHNUC+QkCTu20xC5OZ7wj Tr5YVcT1KL+pIHroqMZ1Ie84ffHHKcXiizsWE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RJ2jupUcHzwSWZfviwCVRz7hio7Nu1Hb5L5McSlEO/UjmGsF6vAzSSatfsTqPLDYVr 1wYhCMg1d3NuQ1xG7Qiop4Q7/3x+ORV/dn6o0LQ+g7bnXbqJWiz82tubf4fh1W6t4lDU wxtex4Uae4+60oRU+hn7KF+4osfKv+NYWXgu0= MIME-Version: 1.0 Received: by 10.142.191.1 with SMTP id o1mr2620120wff.396.1304802013256; Sat, 07 May 2011 14:00:13 -0700 (PDT) Received: by 10.142.218.8 with HTTP; Sat, 7 May 2011 14:00:13 -0700 (PDT) In-Reply-To: References: Date: Sat, 7 May 2011 14:00:13 -0700 Message-ID: Subject: Re: How can I check if file exists in gz compress file? From: Ben Tu To: Ant Users List Content-Type: multipart/alternative; boundary=000e0cd215d4809c2d04a2b5e4b1 --000e0cd215d4809c2d04a2b5e4b1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable thanks Nicolas. I'll look into it. 2011/5/7 Nicolas Lalev=E9e > I think this kind of condition will do the proper job: > > > > > > > > > > Nicolas > > Le 6 mai 2011 =E0 19:14, Matt Benson a =E9crit : > > > On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > >> Hi, > >> > >> Is there a task in Ant that I can check if the file exists in > myfile.tar.gz > >> file without extracting it? > >> > >> > > > > With the tar being gzipped, I can't think of anything in core Ant that > > will just do this. If you want to gunzip it first, you can use the > > resource collection. > > > > Matt > > > >> > >> Here is the content of myfile.tar.gz after extracted. > >> > >> Dir1/ > >> > >> fileA > >> > >> fileB > >> > >> dir2/ > >> > >> fileC > >> > >> > >> > >> I want to check if fileC exists in myfile.tar.gz without extracting > >> myfile.tar.gz. is there such a task in Ant for this purpose? > >> > >> > >> > >> thanks, Ben > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --000e0cd215d4809c2d04a2b5e4b1--