Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 5035 invoked from network); 7 Jun 2006 19:28:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jun 2006 19:28:25 -0000 Received: (qmail 31339 invoked by uid 500); 7 Jun 2006 19:28:19 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 31279 invoked by uid 500); 7 Jun 2006 19:28:18 -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 31248 invoked by uid 99); 7 Jun 2006 19:28:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 12:28:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of antoine@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 07 Jun 2006 12:28:17 -0700 Received: (qmail 25134 invoked by uid 0); 7 Jun 2006 19:27:55 -0000 Received: from 66.28.87.10 by www062.gmx.net with HTTP; Wed, 07 Jun 2006 21:27:55 +0200 (CEST) X-Flags: 0001 Date: Wed, 07 Jun 2006 21:27:55 +0200 Message-ID: <20060607192755.178790@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" From: "Antoine Levy-Lambert" In-Reply-To: <20060607144443.85309.qmail@web30912.mail.mud.yahoo.com> References: <20060607144443.85309.qmail@web30912.mail.mud.yahoo.com> Subject: Re: Re: adding getURL() to Resource [WAS: [Bug 39407] - Change task to accept the XSLT stylesheet as a resource] To: Ant Developers List X-Authenticated: #22961642 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Matt, > -------- Original-Nachricht -------- > Datum: Wed, 7 Jun 2006 07:44:43 -0700 (PDT) > Von: Matt Benson > An: Ant Developers List > Betreff: Re: adding getURL() to Resource [WAS: [Bug 39407] - Change task to accept the XSLT stylesheet as a resource] > > --- Antoine Levy-Lambert wrote: > > > Hi, > > > > XSLT processing, and maybe other tasks would need a > > method getURL() to be added to Resource. > > > > Any thoughts on that ? > > > > If we do it, do we do : > > String() getURL() > > > > or > > > > java.net.URL getURL() > > Hmm. I'm not smart enough for this. I guess we > probably should as file resources have urls. What > does that say for ? Is that a conflict, or is it > just the most generic of the "real" resource types? this is not a conflict > If we make it part of the resource then I would think > we should use the actual URL type; OK > in fact URLResource > already has this property, so it already implements > this. This way custom resource implementations could > create the URL they return with a custom > URLStreamHandler and the resulting URLs would be able, > with sufficient JVM permissions set, to behave > appropriately for whatever resource is declared. How > does this sound to anyone who cares? > I have never dealt with URLStreamHandler(s) > -Matt > My concern is that the system id of stylesheets (or XML documents) which the task is processing should be set in such a way that entity includes or can be resolved properly. For instance, if we are doing an XSLT transformation with a stylesheet which is defined as a zip resource, for instance the entry org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl from ant-junit.jar, the system id should be set in such a way that if there is in junit-frames.xsl a , and junit-generic.xsl is also packaged in ant-junit.jar under org/apache/tools/ant/taskdefs/optional/junit/xsl, the include will be found and used properly. Same for XML documents having entity includes, or referencing local DTD's or schemas. Regards, Antoine --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org