ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fermin Da Costa Gomez <f.dacost...@gmail.com>
Subject Counting files in a dir
Date Tue, 05 Apr 2005 01:16:02 GMT
Hi,

What would be the best way to do the following:
1. Going into a directory (this is ok)
2. Counting the number of files of type x (getting files is ok, *counting* is an 
issue)
3. Depending on the count do something (break out of the target)

Items 2. and 3. are bugging me somewhat (esp the counting bit in 2).
Does anybody have a suggestion as to how i can accomplish this?

tia,

Fermin DCG

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


Mime
View raw message