ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Count number of files in fileset
Date Mon, 13 Jun 2005 15:38:18 GMT
1) Ant 1.7 will contain a <resourcecount> task that
can count files from a fileset.

2) <concat> shouldn't do anything if there are no
existing files.

-Matt

--- Kees van Dieren <kees.vandieren@mp-objects.com>
wrote:

> Hello,
> 
>  
> 
> I have to concat some files from a fileset together
> into another file. I use
> the following fileset for this:
> 
> <concat
> destfile="${build.webservices.dir}/config.xml">
> 
> <header>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
> 
> &lt;configuration
>
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"&gt;
> </header>
> 
>                   <fileset
> refid="module-webservices-config-fileset" />
> 
>                   <footer>&lt;/configuration&gt;
> </footer>
> 
>             </concat>
> 
>  
> 
> 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


Mime
View raw message