ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject RE: Counting files in a dir
Date Wed, 06 Apr 2005 14:33:53 GMT
--- Dominique Devienne <DDevienne@lgc.com> 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.

-Matt

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


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.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