ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject RE: Counting files in a dir
Date Wed, 06 Apr 2005 14:33:53 GMT
--- Dominique Devienne <> wrote:

> The scenario you describe seem to point to file
> selectors. In Ant, you
> usually don't loop on dirs, doing some conditional
> processing within the
> loop, you select all the files to process using
> <fileset>s, which with
> selectors can do this selection on just about any
> criteria, and then you
> process this list of files unconditionally.
> For example, since your example is around unit
> testing, I use <junit>
> with a <batchtest>, which contain <fileset>s with
> custom selectors to
> select only some tests, based on various criteria.
> I'm not sure it applies to you, but I'd say it's the
> canonical way to do
> this kind of things in Ant. --DD

Agreed; using a <junit> <batchtest> with filesets that
select the testcases, if none exist in a fileset based
in a particular directory, well, then, no tests will
be run.  So you should basically get for free what you
are trying to do here.


> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message