Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 76050 invoked by uid 500); 7 Aug 2003 06:59:04 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 76038 invoked from network); 7 Aug 2003 06:59:03 -0000 Received: from bodewig.bost.de (62.96.16.111) by daedalus.apache.org with SMTP; 7 Aug 2003 06:59:03 -0000 Received: (from bodewig@localhost) by bodewig.bost.de (8.11.6/8.11.6) id h776xEC11888; Thu, 7 Aug 2003 08:59:14 +0200 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: dev@ant.apache.org Subject: Re: getExcludedFiles() and slowScan() References: From: Stefan Bodewig Date: 07 Aug 2003 08:59:14 +0200 In-Reply-To: Message-ID: Lines: 28 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Portable Code) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 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