From dev-return-78484-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Fri Mar 23 05:06:59 2007 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 91607 invoked from network); 23 Mar 2007 05:06:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Mar 2007 05:06:57 -0000 Received: (qmail 11409 invoked by uid 500); 23 Mar 2007 05:07:04 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 11381 invoked by uid 500); 23 Mar 2007 05:07:04 -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 11369 invoked by uid 99); 23 Mar 2007 05:07:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 22:07:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [88.84.142.181] (HELO samaflost.de) (88.84.142.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 22:06:55 -0700 Received: from localhost (unknown [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id EBE0C8BC0699 for ; Fri, 23 Mar 2007 05:06:33 +0000 (UTC) Received: from samaflost.de ([127.0.0.1]) by localhost (v30161.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07670-03 for ; Fri, 23 Mar 2007 06:06:32 +0100 (CET) Received: by samaflost.de (Postfix, from userid 2525) id 38B7B8BC078E; Fri, 23 Mar 2007 06:06:32 +0100 (CET) To: dev@ant.apache.org Subject: Re: archivefileset resources X-Draft-From: ("nnfolder:mail.jakarta-ant" 79857) References: <925718.40342.qm@web55101.mail.re4.yahoo.com> From: Stefan Bodewig Date: Fri, 23 Mar 2007 06:06:32 +0100 In-Reply-To: <925718.40342.qm@web55101.mail.re4.yahoo.com> (Matt Benson's message of "Thu, 22 Mar 2007 08:28:20 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at samaflost.de X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 22 Mar 2007, Matt Benson wrote: > --- Stefan Bodewig wrote: > >> On Wed, 21 Mar 2007, Matt Benson >> wrote: >> > Surely we can't go there... maybe we'd better rethink the >> > "instanceof FileResource" idiom instead, e.g. >> > isFilesystemResource()? >> >> Or throw in an interface that contains getFile() and is implemented >> by FileRessource - and modify the "instanceof FileResource" idiom >> to "instanceof that new interface". > > That gives me a nice comfy feeling. Good. > If we simply mandate that this type of Resource classification > should always be interface-defined (we probably should have done > this from the beginning +1 > ), we can use JDK1.3 proxies and avoid cglib, +1 again. > Another cool thing seems to be that we could provide > some kind of ResourceCollection that could proxy the > resources from another collection but provide their > content in files even for non-file resources Yes, that sounds interesting. We could throw in similar things to attach permission bits to ressources that are not archiveressources and so on. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org