ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: getExcludedFiles() and slowScan()
Date Thu, 07 Aug 2003 06:59:14 GMT
On Wed, 06 Aug 2003, Alex Rosen <> wrote:

> A fast scan ignores directories which can't possibly hold any
> included files/directories, but getExcludedFiles() says it doesn't
> care about these because it will never return them.

The fast scan will also exclude directories that are excluded.  It is
very well possible that these directories contain files that match an
include pattern as well (but the fast scan ignored them).

>>                                           whereas a fast scan
>>     * will only have full results for included files, as it ignores
>>     * directories which can't possibly hold any included files/directories.

leaves two options for directories that are ommitted by a fast scan:

(a) it is clear that the directory cannot hold any files matching an
include pattern - in this case you'd be correct as these files are not
part of the getExcludedFiles result either (but of

(b) it is clear that the directory will only hold files matching an
exclude pattern - this is why slowScan is necessary.

BTW, for Ant 1.5.x you'd be correct but the code in CVS HEAD has been
improved to add (b).


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

View raw message