I have never understood, why do we need getExcludedFiles() or getNotIncludedFiles(). What kind of tasks need this functionality?
Jose Alberto > -----Original Message----- > From: Stefan Bodewig [mailto:[EMAIL PROTECTED] > Sent: 07 August 2003 07:59 > To: [EMAIL PROTECTED] > Subject: Re: getExcludedFiles() and slowScan() > > > On Wed, 06 Aug 2003, Alex Rosen <[EMAIL PROTECTED]> 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 > getNotIncludedFiles). > > (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). > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
