Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 52327 invoked from network); 13 Jun 2005 15:39:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2005 15:39:11 -0000 Received: (qmail 13531 invoked by uid 500); 13 Jun 2005 15:38:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 13475 invoked by uid 500); 13 Jun 2005 15:38:51 -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 13011 invoked by uid 99); 13 Jun 2005 15:38:48 -0000 X-ASF-Spam-Status: No, hits=3.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web30908.mail.mud.yahoo.com (HELO web30908.mail.mud.yahoo.com) (68.142.200.161) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 13 Jun 2005 08:38:46 -0700 Received: (qmail 24181 invoked by uid 60001); 13 Jun 2005 15:38:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZOKSoszBBBNGKMd+3aLKT+bwpb5dpEFir1mecYARJ+CZJoI26bnuk49nJGWO9HOFVu/DpnAuYC3B4X6GCPJKVTUiNAjZA/ypPfXNuoUnQvgfJK8pMK8jCXQbo3bQ6oeC2ZChQIU2oRqwEQI4GgqjfRf97hmNHIowrFzNEh2H1tA= ; Message-ID: <20050613153818.24179.qmail@web30908.mail.mud.yahoo.com> Received: from [65.247.233.191] by web30908.mail.mud.yahoo.com via HTTP; Mon, 13 Jun 2005 08:38:18 PDT Date: Mon, 13 Jun 2005 08:38:18 -0700 (PDT) From: Matt Benson Subject: Re: Count number of files in fileset To: Ant Users List In-Reply-To: <200506131455.j5DEtLmD059862@smtp-vbr13.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 1) Ant 1.7 will contain a task that can count files from a fileset. 2) shouldn't do anything if there are no existing files. -Matt --- Kees van Dieren wrote: > Hello, > > > > I have to concat some files from a fileset together > into another file. I use > the following fileset for this: > > destfile="${build.webservices.dir}/config.xml"> > >
<?xml version="1.0" encoding="UTF-8"?> > > <configuration > xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"> >
> > refid="module-webservices-config-fileset" /> > > > >
> > > > However, this only should hebben if the number of > files in fileset > module-webservices-config-fileset > 0. > > > > Is there a way, to fetch the number of files in a > fileset (may be with > ant-contrib, or another 3rd-party addon)? > > > > Thanks in advance. > > > > Kind regards, > > Kees van Dieren > Senior Software Engineer > > MP Objects Supply Chain Software > Stationsplein 45 > 3013 AK Rotterdam > The Netherlands > > Post address: > Postbus 29126 > 3001 GC Rotterdam > > Mobile: +31 (0)6-43068619 > Phone: +31 (0)10-2900304 > Fax: +31 (0)10-2900305 > > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org