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 <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <user@ant.apache.org>
To: "Ant Users List" <user@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
<user@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
<user@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
<user@ant.apache.org>; Thu, 4 Aug 2005 17:26:10 -0400 (EDT)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@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: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <user@ant.apache.org>
To: "Ant Users List" <user@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
<user@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 <user@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
<user@ant.apache.org>; Thu, 4 Aug 2005 17:06:41 -0400 (EDT)
X-Message-Info: JGTYoYF78jHIc0M3aqAmLkvIFi+j+xPG4LIFdnY0n60=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@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: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]