Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 21466 invoked from network); 15 Sep 2009 15:18:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Sep 2009 15:18:42 -0000 Received: (qmail 5949 invoked by uid 500); 15 Sep 2009 15:18:41 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 5881 invoked by uid 500); 15 Sep 2009 15:18:41 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 5871 invoked by uid 99); 15 Sep 2009 15:18:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 15:18:41 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 15:18:32 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 962AF28985EB for ; Tue, 15 Sep 2009 17:17:41 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mfzForvFGBpg for ; Tue, 15 Sep 2009 17:17:34 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id E523628985E3; Tue, 15 Sep 2009 17:17:33 +0200 (CEST) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: DirectoryScanner cache to boost performance References: <25422247.post@talk.nabble.com> <873a6po67t.fsf@v35516.1blu.de> <25454556.post@talk.nabble.com> <87my4wi8cw.fsf@v35516.1blu.de> <25455827.post@talk.nabble.com> X-Draft-From: ("nnfolder:mail.jakarta-ant-user" 66413) Date: Tue, 15 Sep 2009 17:17:33 +0200 In-Reply-To: <25455827.post@talk.nabble.com> (Raja Nagendra Kumar's message of "Tue, 15 Sep 2009 08:10:05 -0700 (PDT)") Message-ID: <871vm8i6eq.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org On 2009-09-15, Raja Nagendra Kumar wrote: > is there a way to use the include and exclude patterns as part of > restrict.. just the name match is what we are looking far. yes, use name selectors (and wrap them in "not"s for excludes) together with correct "and"ing and "or"ing - this is what you already had in your code IIRC. There is no convenient API to do that, you'll have to chain them up yourself. Sounds as if it might be worth investing some time in a builder API for this, but since only the people who use Ant via Java suffer from this (the XML API isn't less convenient than that of ) it is unlikely to get written. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org