ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S I" <xia...@hotmail.com>
Subject RE: Zipfileset problem. Help!
Date Tue, 26 Jul 2005 22:56:21 GMT
OK haven't got any response or help but I did discover that the 'filesonly' 
attribute of Ant's <zip> task basically is DECORATIVE AND ORNAMENTAL and 
servers NO purpose whatsoever! Maybe I'm using it wrong. However, I have set 
its value to 'yes', 'true', 'right', and 'whathaveyou' and ANT does not 
complain!  Any suggestions?

Thank you,

Steve

----Original Message Follows----
From: "S I" <xiamak@hotmail.com>
Reply-To: "Ant Users List" <user@ant.apache.org>
To: user@ant.apache.org
Subject: Zipfileset problem. Help!
Date: Tue, 26 Jul 2005 13:09:30 -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 mc1-f9.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Tue, 26 Jul 2005 13:09:40 -0700
Received: (qmail 81446 invoked by uid 500); 26 Jul 2005 20:09:33 -0000
Received: (qmail 81428 invoked by uid 99); 26 Jul 2005 20:09:32 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)    by 
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 13:09:32 -0700
Received: pass (asf.osuosl.org: domain of xiamak@hotmail.com designates 
65.54.224.21 as permitted sender)
Received: from [65.54.224.21] (HELO hotmail.com) (65.54.224.21)    by 
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 13:09:25 -0700
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; 
Tue, 26 Jul 2005 13:09:30 -0700
Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with 
HTTP;Tue, 26 Jul 2005 20:09:30 GMT
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPt4iogl2abg+M=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:user-unsubscribe@ant.apache.org>
List-Help: <mailto:user-help@ant.apache.org>
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=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: 26 Jul 2005 20:09:30.0794 (UTC) 
FILETIME=[EECB60A0:01C5921D]
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-51348-xiamak=hotmail.com@ant.apache.org

Hi

I'm trying to create a zip file of a parent folder with many subfolders with 
many different file types in each subfolder.  However, I'm only interested 
in the *.rdl files in each subfolder and one subdir under the parent folder 
to be included in the final zip file.  I want the .rdl files to sit at the 
root of the zip file w/o exporting their subfolder names.  But I'm not 
successful.  This is the way I have written the Ant script now:

    <zip destfile="reports.zip">
    	<zipfileset dir="reports/daily" includes="**/*.rdl" prefix="/" />
    	<zipfileset dir="reports/daily/install" includes="**/install" />
    </zip>

Where reports/ is the grand parent right on my drive C:, daily is the parent 
folder, and there are about 50 subfolders under daily.  I'm on WinXP desktop 
by the way.

Doesn't matter whether I set prefix to space or slash, the .rdl parent 
folders under daily are still included but reports/daily itself is not 
appended. And as for the 2nd zipfileset, **/install doesn't work.

Thanks

Steven



---------------------------------------------------------------------
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


Mime
View raw message