From dev-return-75194-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Mon Sep 25 16:15:34 2006 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 60590 invoked from network); 25 Sep 2006 16:15:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Sep 2006 16:15:33 -0000 Received: (qmail 50111 invoked by uid 500); 25 Sep 2006 16:15:31 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 50078 invoked by uid 500); 25 Sep 2006 16:15:31 -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 50067 invoked by uid 99); 25 Sep 2006 16:15:31 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 09:15:31 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=antoine@gmx.de; spf=pass X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: pass (idunn.apache.osuosl.org: domain gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] ([213.165.64.20:57842] helo=mail.gmx.net) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id BC/8B-13750-68008154 for ; Mon, 25 Sep 2006 09:15:05 -0700 Received: (qmail invoked by alias); 25 Sep 2006 16:14:39 -0000 Received: from p54B14B46.dip.t-dialin.net (EHLO [192.168.2.21]) [84.177.75.70] by mail.gmx.net (mp040) with SMTP; 25 Sep 2006 18:14:39 +0200 X-Authenticated: #22961642 Message-ID: <45180008.1090107@gmx.de> Date: Mon, 25 Sep 2006 12:12:56 -0400 From: Antoine Levy-Lambert User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Ant Developers List Subject: Re: Resource.getURL() References: <255d8d690609230856q119631dbx17081ad38cb366ce@mail.gmail.com> <006601c6df93$66c486e0$0301a8c0@julia> <255d8d690609241757o4c57e60s3316549dce799be7@mail.gmail.com> <4517ADDF.1020002@gmx.de> <255d8d690609250601q3392e955v35c8078285f0c219@mail.gmail.com> In-Reply-To: <255d8d690609250601q3392e955v35c8078285f0c219@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Dominique Devienne wrote: >> > The question is why would you need to get back a URL from a Resource? >> You need to get a URL from a resource if you want to use the resource as >> InputSource in XML processing. >> The URL is used to set the SystemId, in practice to be able to resolve >> includes, entities, ... which are to be found with a relative path. > > But when you get a StringResource, or PropertyResource, which are > ficticious Resource impls wrapping a string or the value of an Ant > property, even if you wrap these into a custom URL, how would you > resolve URLs relative to these??? I would let getURL() return null for StringResource, PropertyResource, ... all this > > This is the reason why I'm saying that a getURL only makes sense for > true URLResources only. getURL() makes sense for FileResource and ZipResource too. > Pushing it down to Resource smells wrong to > me. Even if I'm wrong, it's easier to push it down to Resource > afterward, based on community experience, rather that putting it there > in the first place IMHO. --DD > I can wait. Regards, Antoine --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org