ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: Importing and caching build files from a URL
Date Wed, 30 Nov 2005 11:17:32 GMT
It depends what the root for the copy on the cache is. :-)
If each imported file specifies its own <fetchimport> there should work
ok. No?

Jose Alberto

> -----Original Message-----
> From: Dominique Devienne [mailto:ddevienne@gmail.com]
> Sent: 29 November 2005 20:17
> To: Ant Developers List
> Subject: Re: Importing and caching build files from a URL
> 
> > We could add some macro task that copies the resources into a cache
> directory and then applies the <import> from there.
> >
> > What this would mean is that all the "relative" stuff will be
relative
> to the cache location. Something like:
> >
> > <fetchimport cache=dir>
> >  <resource href="http:...."/>
> > </fetchimport>
> >
> > The macro will use <get> to put it in the cache and then use import
on
> the content of the cache.
> 
> I think it wouldn't solve the relative issues, no? Once in the cache,
> we'd have basically flatened the resources, no? Consider
> http://foo/bar.xml importing http://foo/bar/baz.xml. We hrefs, we'd
> have bar.xml <import href="bar/baz.xml">, but if you fetch both into a
> cache dir, they'd sit next to each other in the file system, no?
> 
> I'm more in favor of <import> supporting URLs directly I think, if at
all.
> --DD
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org


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


Mime
View raw message