You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Fermin Da Costa Gomez <f....@gmail.com> on 2005/04/05 03:16:02 UTC

Counting files in a dir

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