ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Resource.getURL()
Date Mon, 25 Sep 2006 21:01:12 GMT
--- Antoine Levy-Lambert <antoine@gmx.de> wrote:

> Hello Dominique,
> 
> Dominique Devienne wrote:
> >>
> >> getURL() makes sense for FileResource and
> ZipResource too.
> >
> > Yes, but these can be expressed as URLResource
> just the same. Maybe
> > they should in fact derive from URLResource... 
> I do not agree with you on this. ZipResource and
> FileResource have the
> special semantics of resources which are centered on
> a root directory or
> root resource.
> This root is the directory of a fileset, or the
> whole zip file in case
> of ZipResource.
> 
> URLResource (s) AFAIK do not have a special "root".

I think they are considered as having a root concept;
they surely have the concept of a relative path.  See
the API for java.net.URL(URL, String).

-Matt

> 
> The root or base part of the ZipResource or
> FileResource change what
> happens when a copy is done, or a zip file gets
> built, ...
> 
> Regards,
> 
> 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