ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: adding getURL() to Resource [WAS: [Bug 39407] - Change <xslt> task to accept the XSLT stylesheet as a resource]
Date Wed, 07 Jun 2006 14:44:43 GMT
--- Antoine Levy-Lambert <antoine@gmx.de> 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 <url>?  Is that a conflict, or is it
just the most generic of the "real" resource types? 
If we make it part of the resource then I would think
we should use the actual URL type; 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?

-Matt

> 
> Regards,
> 
> Antoine
> 
> > -------- Original-Nachricht --------
> > Datum: Wed,  7 Jun 2006 13:38:40 +0000 (GMT)
> > Von: bugzilla@apache.org
> > An: dev@ant.apache.org
> > Betreff: DO NOT REPLY [Bug 39407]  - Change <xslt>
> task to accept the XSLT stylesheet as a resource
> > 
> >
>
http://issues.apache.org/bugzilla/show_bug.cgi?id=39407
> > 
> > Ivan,
> > 
> > thanks for the patch which is now submitted.
> > 
> > I will add a reply to this on the dev mailing
> list.
> > 
> > Thanks,
> > 
> > Antoine
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message