Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 61887 invoked from network); 7 Oct 2002 10:00:01 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Oct 2002 10:00:01 -0000 Received: (qmail 4544 invoked by uid 97); 7 Oct 2002 10:00:55 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 4522 invoked by uid 97); 7 Oct 2002 10:00:54 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 4503 invoked by uid 98); 7 Oct 2002 10:00:54 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "Vincent Massol" To: "'Jakarta Commons Developers List'" Subject: RE: [Jelly] From File to URI Date: Mon, 7 Oct 2002 10:58:03 +0100 Organization: OCTO Technology Message-ID: <006f01c26de8$07ad66c0$0200a8c0@octovma> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <007f01c26de6$d1716350$9865fea9@spiritsoft.com> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: James Strachan [mailto:james_strachan@yahoo.co.uk] > Sent: 07 October 2002 10:49 > To: Jakarta Commons Developers List > Subject: Re: [Jelly] From File to URI > > From: "Vincent Massol" > > Hi, > > > > I have the following script: > > > > > > > > > > > > > > > > > > > > However, it doesn't work as ${script.path} returns a platform dependent > > file name and not a URI. > > You could try > > ${script.toURL().toString()} > arg! I missed the toURL/URI() API! Sorry for that. I actually looked at the javadoc for File before sending my question but missed it ... :( Thanks! > > > Thus, I would need to do a kind of "(new URL(script.path)).getFile()" > > ... > > > > Or should the import accept a file attribute? > > Maybe we could patch the import tag to accept files as well. So... > > > > would be allowed? That was my idea but I don't think it is really needed as there is the toURL() API for that. Thanks James -Vincent > > > James > ------- > http://radio.weblogs.com/0112098/ > > __________________________________________________ > > Do You Yahoo!? > > Everything you'll ever need on one web page > > from News and Sport to Email and Music Charts > > http://uk.my.yahoo.com > > > -- > To unsubscribe, e-mail: unsubscribe@jakarta.apache.org> > For additional commands, e-mail: help@jakarta.apache.org> -- To unsubscribe, e-mail: For additional commands, e-mail: