ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: getExcludedFiles() and slowScan()
Date Thu, 07 Aug 2003 09:48:31 GMT
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:bodewig@apache.org]
> Sent: 07 August 2003 07:59
> To: dev@ant.apache.org
> Subject: Re: getExcludedFiles() and slowScan()
> 
> 
> On Wed, 06 Aug 2003, Alex Rosen <arosen@novell.com> 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: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 

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


Mime
View raw message