From dev-return-78917-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Thu Apr 26 16:34:09 2007 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 5183 invoked from network); 26 Apr 2007 16:34:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2007 16:34:08 -0000 Received: (qmail 58006 invoked by uid 500); 26 Apr 2007 16:34:14 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 57970 invoked by uid 500); 26 Apr 2007 16:34:13 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 57959 invoked by uid 99); 26 Apr 2007 16:34:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 09:34:13 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of trelony@gmail.com designates 66.249.90.176 as permitted sender) Received: from [66.249.90.176] (HELO ik-out-1112.google.com) (66.249.90.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 09:34:06 -0700 Received: by ik-out-1112.google.com with SMTP id c21so736366ika for ; Thu, 26 Apr 2007 09:33:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gQvSFlMdxCGvamd2F3NKzLHgYKRnWOqa0wU9DjDTV3ssx5ZbXsgiKED/kW1KD3zsvraSkWSPepEIwWLbtyaFd94pzCcUrR+qWh0cdwcXBHIAQQ/LVN2NStnPptre/RAKo0SL6jn0Z3rH1dOhLOOH0xVeKtQsVGkFPuTj7f6x/4M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NrBRzBygx8is2DfXOviczriuhbRfIlS595bxtGIqCsFclLwXVxMEOpWmB2CoXp/B+1C9/yYUvORghpSrp/tXmk9KdTW930uUG9tHMjfJ5s8NIkGaItACC1ltKCFstBiCuMknElmH5op41m62nQqqCs8qSU46RsqpI8HGgpIQBdo= Received: by 10.78.183.15 with SMTP id g15mr558978huf.1177605223575; Thu, 26 Apr 2007 09:33:43 -0700 (PDT) Received: by 10.78.23.2 with HTTP; Thu, 26 Apr 2007 09:33:43 -0700 (PDT) Message-ID: <8f836c660704260933y14a29f9cj1f27e59bce99a95c@mail.gmail.com> Date: Thu, 26 Apr 2007 09:33:43 -0700 From: "Alexey Solofnenko" To: "Ant Developers List" Subject: Re: DO NOT REPLY [Bug 42219] - Inefficient code in Union, DirectoryScanner makes large copy tasks very slow In-Reply-To: <4630D19C.7090501@apache.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_201376_5775406.1177605223471" References: <20070424170932.3498D714058@brutus.apache.org> <8f836c660704241017q5d496714jabcb3afa443bdcfa@mail.gmail.com> <462E3EF7.8030901@mdl.com> <4630C9F6.1090301@apache.org> <4630CD5E.6050006@mdl.com> <4630D19C.7090501@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_201376_5775406.1177605223471 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I would use inheritance instead of facades. - Alexey. On 4/26/07, Steve Loughran wrote: > > Alexey N. Solofnenko wrote: > > Classpath ordering is a usual practice that is used, for example, for > > patching. > > yes, and it doesnt work with signed JARs. And, because doesnt > impose an order, you can't guarantee the order of use. > > > The same classpath order could be used in debugger too. In our > > case it could be hidden inside launcher. But there are other ways to > > achieve the same - for example, factories that can return Java6 specific > > FileResource, but it is cumbersome: > > (FileResource)project.createObject("org.apache....FileResource"). The > > later has its advantages too - project could configure the class to > > support permissions or not. > > Facades, all you need are facades. More indirection. > > > > > > This follows to settings. I think we could put the settings in the > > project class (as get/set methods or somehow else) - support or not > > permissions, old/new behaviour is not a property of the environment, but > > it is a property of a specific build script. > > hmmm. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > -- Alexey N. Solofnenko Home: http://trelony.cjb.net/ Pleasant Hill, CA (GMT-8 usually) ------=_Part_201376_5775406.1177605223471--