ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: Bulk repository copy question
Date Wed, 13 Feb 2008 18:36:58 GMT
On Feb 13, 2008 6:26 PM, Brown, Carlton <Carlton.Brown@compucredit.com>
wrote:

> In regards to copying modules from one repository to another, the
> documentation shows examples of copying a single module from one
> resolver to another, explicitly declaring the organization, module, and
> revision.
>
>
>
> How can I do an implicit bulk copy of all dependencies specified in a
> particular ivy file from one repository to another?
>
>
>
> I was hoping for a command syntax like:
>
> <ivy:install organization="*" module="*" revision="*" from="sourcerep"
> to="destrep" ivyFile="ivy.xml" transitive="true"/>
>
>
>
> Obviously this wildcard syntax doesn't work, but hopefully it
> illustrates what I'd like to do.   This would transitively copy every
> dependency described in ivy.xml from sourcerep to destrep, transitively.
> Maybe I am missing the user of a matcher or some regular expression
> syntax?
>
>
>
> The problem I'm trying to solve is to create a persistent local artifact
> repository mirror (like a disk cache) to avoid repeated artifact
> retrievals across the network.   I prefer a local fs repository instead
> of ivy's internal cache for this purpose , because it seems the ivy
> cache needs cleaning from time to time.  And we are talking about
> hundreds of megabytes of fairly static libraries, so it makes no sense
> to dynamically retrieve them across the network each time.
>
>
>
> Does anyone have any suggestions?

If you have the list of modules to install in an ivy file, I think you can
use retrieve instead of install. Retrieve can also copy ivy files if you
want, so it should fit your need.

Xavier

>
>
>
>
> Thanks,
>
> Carlton
>
>
>
>
> -----------------------------------------
> ====================================================
> This message contains PRIVILEGED and CONFIDENTIAL
> information that is intended only for use by the
> named recipient. If you are not the named recipient,
> any disclosure, dissemination, or action based on
> the contents of this message is prohibited. In such
> case please notify us and destroy and delete all
> copies of this transmission.  Thank you.
> ====================================================




-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message