Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 5178 invoked from network); 21 Sep 2006 04:34:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2006 04:34:15 -0000 Received: (qmail 28255 invoked by uid 500); 21 Sep 2006 04:34:14 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 28211 invoked by uid 500); 21 Sep 2006 04:34:14 -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 28200 invoked by uid 99); 21 Sep 2006 04:34:14 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2006 21:34:14 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=bodewig@apache.org; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain apache.org from 217.160.128.107 cause and error) Received: from [217.160.128.107] ([217.160.128.107:55588] helo=www.samaflost.de) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 75/0C-04092-44612154 for ; Wed, 20 Sep 2006 21:34:13 -0700 Received: by www.samaflost.de (Postfix, from userid 1000) id 7FDAA8FD274; Thu, 21 Sep 2006 06:34:09 +0200 (CEST) To: dev@ant.apache.org Subject: Re: Resource.getURL() X-Draft-From: ("nnfolder:mail.jakarta-ant" 76365) References: <20060920145752.33304.qmail@web55107.mail.re4.yahoo.com> From: Stefan Bodewig Date: Thu, 21 Sep 2006 06:34:08 +0200 In-Reply-To: <20060920145752.33304.qmail@web55107.mail.re4.yahoo.com> (Matt Benson's message of "Wed, 20 Sep 2006 07:57:52 -0700 (PDT)") Message-ID: <87k63xltxb.fsf@www.samaflost.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wed, 20 Sep 2006, Matt Benson wrote: > --- Antoine Levy-Lambert wrote: > >> Hello Matt, >> >> thanks for fixing my fixes ! >> >> did you already add getURL() to all Resource(s) ? >> this would be cool to be able to always set the >> SystemId in case of XML documents of all sorts. > > I have been thinking it might make sense to add > getURL() to Resource. Did a discussion on that > already take place? I don't remember any. Given that Resource as a class and not an interface we are able to add new methods even after 1.7.0 without running the risk of breaking the code of people who implement their own resources. Given that there wouldn't be any code in Ant 1.7.0 that used getURL() we should defer adding the method as well, IMHO. > And, for example, what would we do for resources of > nonstandard "protocols"? Would a StringResource with > value "foo" return "string:foo" as its URL? Should we > install custom protocol handlers for built-in > resources and encourage the same be done for > third-party resource implementations? +1 for custom protocol handlers. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org