You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by S I <xi...@hotmail.com> on 2005/08/04 18:08:03 UTC
Ant Zip Task
Hi
I'm trying to zip up bunch of files in many subdirectories undrer their
parents directory but all the subdir names and paths are getting included in
the zip file. The include attribute is not doing it for me. Is there a
trick to this? I just want the files w/o any paths.
Thanks
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Ant Zip Task
Posted by S I <xi...@hotmail.com>.
Looks like I have to resort to the filemapper then.
I was happy just zipping the whole thing up! But powers-that-be, requested
it, all the specified files to be in 1 place rather each file being under
its matching subdir causing a headache to the clients.
At least, I now know that it wasn't me or my imagination and the zip-task
wasn't accomplishing what I wanted it to do. I find the 'filesonly'
attribute completely ornamental for my purpose.
Thank you for your help. :)
----Original Message Follows----
From: EJ Ciramella <ec...@archivas.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: Re: Ant Zip Task
Date: Thu, 4 Aug 2005 17:26:28 -0400
MIME-Version: 1.0 (Apple Message framework v733)
Received: from mail.apache.org ([209.237.227.199]) by mc5-f21.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Thu, 4 Aug 2005 14:26:20 -0700
Received: (qmail 64958 invoked by uid 500); 4 Aug 2005 21:26:16 -0000
Received: (qmail 64943 invoked by uid 99); 4 Aug 2005 21:26:16 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 14:26:16 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [64.119.142.36] (HELO archimail.archivas.com) (64.119.142.36)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 14:26:05 -0700
Received: from localhost (localhost.localdomain [127.0.0.1])by
archimail.archivas.com (Postfix) with ESMTP id 4B5984F4013for
<us...@ant.apache.org>; Thu, 4 Aug 2005 17:26:13 -0400 (EDT)
Received: from archimail.archivas.com ([127.0.0.1]) by localhost (archimail
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20824-09 for
<us...@ant.apache.org>; Thu, 4 Aug 2005 17:26:10 -0400 (EDT)
Received: from [192.168.100.221] (unknown [192.168.100.221])by
archimail.archivas.com (Postfix) with ESMTP id AAAE24F400Dfor
<us...@ant.apache.org>; Thu, 4 Aug 2005 17:26:10 -0400 (EDT)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
References: <BA...@phx.gbl>
X-Mailer: Apple Mail (2.733)
X-Virus-Scanned: amavisd-new at archivas.com
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-51575-xiamak=hotmail.com@ant.apache.org
X-OriginalArrivalTime: 04 Aug 2005 21:26:20.0811 (UTC)
FILETIME=[284BE5B0:01C5993B]
I don't see a way to do that directly with zip/zipfileset. You could try
copying (with the flatner) to another directory first, then zipping them
up. This seems like a headache to me. Why do they need to be at the top
level? Copying around lots of files typically slows builds waaaaay down.
On Aug 4, 2005, at 5:22 PM, S I wrote:
>Under the parent directory, I have about 50 subdirs which contain multiple
>file extensions but I'm only interested in pulling & copying the *.rdl
>files and zip them up.
>
>Somebody suggested I should look into filemapper or globber...would those
>work?
>
>Thanks
>
>----Original Message Follows----
>From: EJ Ciramella <ec...@archivas.com>
>Reply-To: "Ant Users List" <us...@ant.apache.org>
>To: "Ant Users List" <us...@ant.apache.org>
>Subject: Re: Ant Zip Task
>Date: Thu, 4 Aug 2005 17:06:58 -0400
>MIME-Version: 1.0 (Apple Message framework v733)
>Received: from mail.apache.org ([209.237.227.199]) by mc5- f38.hotmail.com
>with Microsoft SMTPSVC(6.0.3790.211); Thu, 4 Aug 2005 14:06:53 -0700
>Received: (qmail 38517 invoked by uid 500); 4 Aug 2005 21:06:46 -0000
>Received: (qmail 38490 invoked by uid 99); 4 Aug 2005 21:06:46 -0000
>Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
>apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 14:06:46 -0700
>Received: pass (asf.osuosl.org: local policy)
>Received: from [64.119.142.36] (HELO archimail.archivas.com)
>(64.119.142.36) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug
>2005 14:06:36 -0700
>Received: from localhost (localhost.localdomain [127.0.0.1])by
>archimail.archivas.com (Postfix) with ESMTP id 59A6C4F4015for
><us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:44 -0400 (EDT)
>Received: from archimail.archivas.com ([127.0.0.1]) by localhost
>(archimail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20445-08
>for <us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:41 -0400 (EDT)
>Received: from [192.168.100.221] (unknown [192.168.100.221])by
>archimail.archivas.com (Postfix) with ESMTP id 864FE4F400Dfor
><us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:41 -0400 (EDT)
>X-Message-Info: JGTYoYF78jHIc0M3aqAmLkvIFi+j+xPG4LIFdnY0n60=
>Mailing-List: contact user-help@ant.apache.org; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: <ma...@ant.apache.org>
>List-Help: <ma...@ant.apache.org>
>List-Post: <ma...@ant.apache.org>
>List-Id: "Ant Users List" <user.ant.apache.org>
>Delivered-To: mailing list user@ant.apache.org
>X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
>X-Spam-Check-By: apache.org
>References: <BA...@phx.gbl>
><9E...@archivas.com>
>X-Mailer: Apple Mail (2.733)
>X-Virus-Scanned: amavisd-new at archivas.com
>X-Virus-Checked: Checked by ClamAV on apache.org
>Return-Path: user-return-51571-xiamak=hotmail.com@ant.apache.org
>X-OriginalArrivalTime: 04 Aug 2005 21:06:53.0599 (UTC) FILETIME=
>[70957AF0:01C59938]
>
>never mind, neither of my suggestions work - I'm looking into this now. .
>.
>
>How many files and directories?
>
>On Aug 4, 2005, at 4:50 PM, EJ Ciramella wrote:
>
>
>>so you have the following:
>>
>>
>>
>>/some/path/to/a/file/file1.txt
>>/some/path/to/another/file/file2.txt
>>
>>and in the zip, you want:
>>
>>/file1.txt
>>/file2.txt
>>
>>Try the <zip> task's filesonly attribute and if that isn't enough, try
>>the <zipfileset>'s fullpath attribute and set it to "/".
>>
>>?
>>
>>On Aug 4, 2005, at 12:08 PM, S I wrote:
>>
>>
>>
>>>Hi
>>>
>>>I'm trying to zip up bunch of files in many subdirectories undrer their
>>>parents directory but all the subdir names and paths are getting
>>>included in the zip file. The include attribute is not doing it for
>>>me. Is there a trick to this? I just want the files w/o any paths.
>>>
>>>Thanks
>>>
>>>Steve
>>>
>>>
>>>
>>>-------------------------------------------------------------------- -
>>>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
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>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
>
>
>
---------------------------------------------------------------------
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
Re: Ant Zip Task
Posted by EJ Ciramella <ec...@archivas.com>.
I don't see a way to do that directly with zip/zipfileset. You could
try copying (with the flatner) to another directory first, then
zipping them up. This seems like a headache to me. Why do they need
to be at the top level? Copying around lots of files typically slows
builds waaaaay down.
On Aug 4, 2005, at 5:22 PM, S I wrote:
> Under the parent directory, I have about 50 subdirs which contain
> multiple file extensions but I'm only interested in pulling &
> copying the *.rdl files and zip them up.
>
> Somebody suggested I should look into filemapper or globber...would
> those work?
>
> Thanks
>
> ----Original Message Follows----
> From: EJ Ciramella <ec...@archivas.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: Re: Ant Zip Task
> Date: Thu, 4 Aug 2005 17:06:58 -0400
> MIME-Version: 1.0 (Apple Message framework v733)
> Received: from mail.apache.org ([209.237.227.199]) by mc5-
> f38.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 4 Aug
> 2005 14:06:53 -0700
> Received: (qmail 38517 invoked by uid 500); 4 Aug 2005 21:06:46 -0000
> Received: (qmail 38490 invoked by uid 99); 4 Aug 2005 21:06:46 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu,
> 04 Aug 2005 14:06:46 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [64.119.142.36] (HELO archimail.archivas.com)
> (64.119.142.36) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04
> Aug 2005 14:06:36 -0700
> Received: from localhost (localhost.localdomain [127.0.0.1])by
> archimail.archivas.com (Postfix) with ESMTP id 59A6C4F4015for
> <us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:44 -0400 (EDT)
> Received: from archimail.archivas.com ([127.0.0.1]) by localhost
> (archimail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id
> 20445-08 for <us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:41 -0400
> (EDT)
> Received: from [192.168.100.221] (unknown [192.168.100.221])by
> archimail.archivas.com (Postfix) with ESMTP id 864FE4F400Dfor
> <us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:41 -0400 (EDT)
> X-Message-Info: JGTYoYF78jHIc0M3aqAmLkvIFi+j+xPG4LIFdnY0n60=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
> X-Spam-Check-By: apache.org
> References: <BA...@phx.gbl>
> <9E...@archivas.com>
> X-Mailer: Apple Mail (2.733)
> X-Virus-Scanned: amavisd-new at archivas.com
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-51571-xiamak=hotmail.com@ant.apache.org
> X-OriginalArrivalTime: 04 Aug 2005 21:06:53.0599 (UTC) FILETIME=
> [70957AF0:01C59938]
>
> never mind, neither of my suggestions work - I'm looking into this
> now. . .
>
> How many files and directories?
>
> On Aug 4, 2005, at 4:50 PM, EJ Ciramella wrote:
>
>
>> so you have the following:
>>
>>
>>
>> /some/path/to/a/file/file1.txt
>> /some/path/to/another/file/file2.txt
>>
>> and in the zip, you want:
>>
>> /file1.txt
>> /file2.txt
>>
>> Try the <zip> task's filesonly attribute and if that isn't
>> enough, try the <zipfileset>'s fullpath attribute and set it to "/".
>>
>> ?
>>
>> On Aug 4, 2005, at 12:08 PM, S I wrote:
>>
>>
>>
>>> Hi
>>>
>>> I'm trying to zip up bunch of files in many subdirectories
>>> undrer their parents directory but all the subdir names and
>>> paths are getting included in the zip file. The include
>>> attribute is not doing it for me. Is there a trick to this? I
>>> just want the files w/o any paths.
>>>
>>> Thanks
>>>
>>> Steve
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> 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
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Ant Zip Task
Posted by S I <xi...@hotmail.com>.
Under the parent directory, I have about 50 subdirs which contain multiple
file extensions but I'm only interested in pulling & copying the *.rdl files
and zip them up.
Somebody suggested I should look into filemapper or globber...would those
work?
Thanks
----Original Message Follows----
From: EJ Ciramella <ec...@archivas.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: Re: Ant Zip Task
Date: Thu, 4 Aug 2005 17:06:58 -0400
MIME-Version: 1.0 (Apple Message framework v733)
Received: from mail.apache.org ([209.237.227.199]) by mc5-f38.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Thu, 4 Aug 2005 14:06:53 -0700
Received: (qmail 38517 invoked by uid 500); 4 Aug 2005 21:06:46 -0000
Received: (qmail 38490 invoked by uid 99); 4 Aug 2005 21:06:46 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 14:06:46 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [64.119.142.36] (HELO archimail.archivas.com) (64.119.142.36)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 14:06:36 -0700
Received: from localhost (localhost.localdomain [127.0.0.1])by
archimail.archivas.com (Postfix) with ESMTP id 59A6C4F4015for
<us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:44 -0400 (EDT)
Received: from archimail.archivas.com ([127.0.0.1]) by localhost (archimail
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20445-08 for
<us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:41 -0400 (EDT)
Received: from [192.168.100.221] (unknown [192.168.100.221])by
archimail.archivas.com (Postfix) with ESMTP id 864FE4F400Dfor
<us...@ant.apache.org>; Thu, 4 Aug 2005 17:06:41 -0400 (EDT)
X-Message-Info: JGTYoYF78jHIc0M3aqAmLkvIFi+j+xPG4LIFdnY0n60=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
References: <BA...@phx.gbl>
<9E...@archivas.com>
X-Mailer: Apple Mail (2.733)
X-Virus-Scanned: amavisd-new at archivas.com
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-51571-xiamak=hotmail.com@ant.apache.org
X-OriginalArrivalTime: 04 Aug 2005 21:06:53.0599 (UTC)
FILETIME=[70957AF0:01C59938]
never mind, neither of my suggestions work - I'm looking into this now. . .
How many files and directories?
On Aug 4, 2005, at 4:50 PM, EJ Ciramella wrote:
>so you have the following:
>
>
>
>/some/path/to/a/file/file1.txt
>/some/path/to/another/file/file2.txt
>
>and in the zip, you want:
>
>/file1.txt
>/file2.txt
>
>Try the <zip> task's filesonly attribute and if that isn't enough, try the
><zipfileset>'s fullpath attribute and set it to "/".
>
>?
>
>On Aug 4, 2005, at 12:08 PM, S I wrote:
>
>
>>Hi
>>
>>I'm trying to zip up bunch of files in many subdirectories undrer their
>>parents directory but all the subdir names and paths are getting included
>>in the zip file. The include attribute is not doing it for me. Is there
>>a trick to this? I just want the files w/o any paths.
>>
>>Thanks
>>
>>Steve
>>
>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>
---------------------------------------------------------------------
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
Re: Ant Zip Task
Posted by EJ Ciramella <ec...@archivas.com>.
never mind, neither of my suggestions work - I'm looking into this
now. . .
How many files and directories?
On Aug 4, 2005, at 4:50 PM, EJ Ciramella wrote:
> so you have the following:
>
>
>
> /some/path/to/a/file/file1.txt
> /some/path/to/another/file/file2.txt
>
> and in the zip, you want:
>
> /file1.txt
> /file2.txt
>
> Try the <zip> task's filesonly attribute and if that isn't enough,
> try the <zipfileset>'s fullpath attribute and set it to "/".
>
> ?
>
> On Aug 4, 2005, at 12:08 PM, S I wrote:
>
>
>> Hi
>>
>> I'm trying to zip up bunch of files in many subdirectories undrer
>> their parents directory but all the subdir names and paths are
>> getting included in the zip file. The include attribute is not
>> doing it for me. Is there a trick to this? I just want the files
>> w/o any paths.
>>
>> Thanks
>>
>> Steve
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Ant Zip Task
Posted by S I <xi...@hotmail.com>.
I did both of these and they didn't work for me. However, the examples you
created, is exactly what I want to achieve. Do both items that you
mentioned work for you? Then I must be doing something wrong?! I set the
value of 'filesonly' to yes, true, and on in every variation imaginable:
UPPER CASE, lower case, miXeD mOdE, etc. Is filesonly supposed to work?
----Original Message Follows----
From: EJ Ciramella <ec...@archivas.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: Re: Ant Zip Task
Date: Thu, 4 Aug 2005 16:50:23 -0400
MIME-Version: 1.0 (Apple Message framework v733)
Received: from mail.apache.org ([209.237.227.199]) by mc11-f22.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Thu, 4 Aug 2005 13:50:14 -0700
Received: (qmail 16563 invoked by uid 500); 4 Aug 2005 20:50:10 -0000
Received: (qmail 16550 invoked by uid 99); 4 Aug 2005 20:50:10 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 13:50:10 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [64.119.142.36] (HELO archimail.archivas.com) (64.119.142.36)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 13:50:00 -0700
Received: from localhost (localhost.localdomain [127.0.0.1])by
archimail.archivas.com (Postfix) with ESMTP id A7BA74F4013for
<us...@ant.apache.org>; Thu, 4 Aug 2005 16:50:07 -0400 (EDT)
Received: from archimail.archivas.com ([127.0.0.1]) by localhost (archimail
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19977-09 for
<us...@ant.apache.org>; Thu, 4 Aug 2005 16:50:06 -0400 (EDT)
Received: from [192.168.100.221] (unknown [192.168.100.221])by
archimail.archivas.com (Postfix) with ESMTP id 589B64F400Dfor
<us...@ant.apache.org>; Thu, 4 Aug 2005 16:50:06 -0400 (EDT)
X-Message-Info: JGTYoYF78jGdKRHVqc62KSTLzxLNYYA+Fh1mf+D08p8=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
References: <BA...@phx.gbl>
X-Mailer: Apple Mail (2.733)
X-Virus-Scanned: amavisd-new at archivas.com
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-51570-xiamak=hotmail.com@ant.apache.org
X-OriginalArrivalTime: 04 Aug 2005 20:50:14.0945 (UTC)
FILETIME=[1D56F910:01C59936]
so you have the following:
/some/path/to/a/file/file1.txt
/some/path/to/another/file/file2.txt
and in the zip, you want:
/file1.txt
/file2.txt
Try the <zip> task's filesonly attribute and if that isn't enough, try the
<zipfileset>'s fullpath attribute and set it to "/".
?
On Aug 4, 2005, at 12:08 PM, S I wrote:
>Hi
>
>I'm trying to zip up bunch of files in many subdirectories undrer their
>parents directory but all the subdir names and paths are getting included
>in the zip file. The include attribute is not doing it for me. Is there
>a trick to this? I just want the files w/o any paths.
>
>Thanks
>
>Steve
>
>
>
>---------------------------------------------------------------------
>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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Ant Zip Task
Posted by EJ Ciramella <ec...@archivas.com>.
so you have the following:
/some/path/to/a/file/file1.txt
/some/path/to/another/file/file2.txt
and in the zip, you want:
/file1.txt
/file2.txt
Try the <zip> task's filesonly attribute and if that isn't enough,
try the <zipfileset>'s fullpath attribute and set it to "/".
?
On Aug 4, 2005, at 12:08 PM, S I wrote:
> Hi
>
> I'm trying to zip up bunch of files in many subdirectories undrer
> their parents directory but all the subdir names and paths are
> getting included in the zip file. The include attribute is not
> doing it for me. Is there a trick to this? I just want the files
> w/o any paths.
>
> Thanks
>
> Steve
>
>
>
> ---------------------------------------------------------------------
> 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
RE: Ant Zip Task
Posted by S I <xi...@hotmail.com>.
The forums are quiet with deafening silence. No one has responded to my
question; 2nd time asking. :)
Which brings me to this next poll:
POLL:
1. Am I blacklisted?
2. My question is not challenging enough?
3. Everyone's on vacation?
4. I need BlackFlag or bug spray to deal with Ant?
5. Ant has been self-deprecated & replaced by something else?
6. None of the above?
7. All of the above?
Sorry, guys! Just being silly. :)
----Original Message Follows----
From: "S I" <xi...@hotmail.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: user@ant.apache.org
Subject: Ant Zip Task
Date: Thu, 04 Aug 2005 09:08:03 -0700
MIME-Version: 1.0
X-Originating-IP: [65.54.224.200]
X-Originating-Email: [xiamak@hotmail.com]
X-Sender: xiamak@hotmail.com
Received: from mail.apache.org ([209.237.227.199]) by mc7-f41.hotmail.com
with Microsoft SMTPSVC(6.0.3790.211); Thu, 4 Aug 2005 09:08:13 -0700
Received: (qmail 32618 invoked by uid 500); 4 Aug 2005 16:08:06 -0000
Received: (qmail 32605 invoked by uid 99); 4 Aug 2005 16:08:06 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 09:08:06 -0700
Received: pass (asf.osuosl.org: domain of xiamak@hotmail.com designates
65.54.224.51 as permitted sender)
Received: from [65.54.224.51] (HELO hotmail.com) (65.54.224.51) by
apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2005 09:07:56 -0700
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
Thu, 4 Aug 2005 09:08:04 -0700
Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with
HTTP;Thu, 04 Aug 2005 16:08:03 GMT
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPt4iogl2abg+M=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=3.6
required=10.0tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
X-OriginalArrivalTime: 04 Aug 2005 16:08:04.0113 (UTC)
FILETIME=[B1C70810:01C5990E]
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-51567-xiamak=hotmail.com@ant.apache.org
Hi
I'm trying to zip up bunch of files in many subdirectories undrer their
parents directory but all the subdir names and paths are getting included in
the zip file. The include attribute is not doing it for me. Is there a
trick to this? I just want the files w/o any paths.
Thanks
Steve
---------------------------------------------------------------------
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