ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@dpml.net>
Subject RE: auto download of antlibs
Date Thu, 10 May 2007 11:27:09 GMT
 

> -----Original Message-----
> From: Steve Loughran [mailto:stevel@apache.org] 
> Sent: Thursday, 10 May 2007 8:20 PM
> To: Ant Developers List
> Subject: Re: auto download of antlibs
> 
> Xavier Hanin wrote:
> > On 5/9/07, Steve Loughran <stevel@apache.org> wrote:
> teresting.
> >>
> >> Maybe every repository in ivyconf.xml would be marked as offline, 
> >> meaning they are available when there is no network.When 
> you run ant 
> >> (or
> >> ivy) with -offline, only offline repositories would be used.
> > 
> > 
> > What do you mean?  If all repositories are marked as 
> offline, there is 
> > no added value. We are currently reviewing our cache 
> management, but 
> > for the moment Ivy can already use the cache when you are 
> offline. The 
> > problem is that if you ask for a latest version of 
> something, Ivy will 
> > try to connect to the repository. For the moment this fails if the 
> > repository is not available, but we are planning to make it 
> possible 
> > to use cache only in this case. But even with this 
> improvement, trying 
> > to connect to a non available repository may take time, so 
> the idea of 
> > an offline mode would be to say:
> > "do not use this repository when offline, use only cache" for 
> > repositories requiring a network connection, and for those which do 
> > not require this connection (like a local repo), continue 
> to use the 
> > repo and not only the cache.
> > 
> > - xavier
> 
> I think I mean you could mark a repository (such as an a  
> filesystem, ssh or http repo) as available when a system is 
> offline. When there's an offline build, the stuff in cache is 
> always there, but you'd only hit those repositories marked as 
> available offline.

It seems that there may be two distinct subjects in this thread:

  a) introduction of policy that restricts dynamic resolution of 
     resource to those available via a local file protocol (refer
     Xavier's comments "By offline I mean with no network access")

  b) introduction of a policy that restricts dynamic resolution 
     of resources to a selection of 'safe'(?) repositories 

The first scenario correctly reflects the offline notion while the second
scenario does not have any relationship to the term.  However, the second
scenario does start to recognize that the physical topology of a machine is
not equivalent to the definition of a policy.

Cheers, Steve.

--------------------------
Stephen McConnell
mailto:mcconnell@dpml.net
http://www.dpml.net
 


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


Mime
View raw message