ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Genter" <rgen...@silverlink.com>
Subject RE: Task to count files in a fileset?
Date Sun, 26 Mar 2006 19:35:02 GMT
> -----Original Message-----
> From: Ivan "Rambius" Ivanov [mailto:rambiusparkisanius@yahoo.com] 
> Sent: Sunday, March 26, 2006 2:24 PM
> To: Ant Users List
> Subject: Re: Task to count files in a fileset?
> 
> Hello,
> 
> I got interested and I wrote a sample build script,
> following Matt's instructions:
> 
> <project>
>   <fileset dir="${basedir}" id="xml.files">
>     <include name="*.xml"/>
>   </fileset>
>   <pathconvert pathsep="" refid="xml.files"
> setonempty="true"
>     property="aaa.xml.files">
>     <mergemapper to="a"/>
>   </pathconvert>
>   <echo>${aaa.xml.files}</echo>
>   <length property="count.xml.files"
> string="${aaa.xml.files}"/>
>   <echo>${count.xml.files}</echo>
> </project>
> 
> Regards
> Ivan
> 

Thanks, Ivan (and Matt). That's very helpful.

--
Rick Genter
Principal Engineer
Silverlink Communications
<mailto:rgenter@silverlink.com>
(781) 425-5763


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message