On 4 kol, 13:21, James Reeves <weavejes...@googlemail.com> wrote:
> Could you give me an example of how you'd use Ivy in a standalone
> capacity? I was unable to find an example of Ivy being used in the
> same way one would use Rubygems or Apt.

In your project you would create standard ivy.xml and ivysettings.xml
files as described on Ivy site. Download Ivy (and Ant jars if you will
create or use Packagers). After that you can retrieve your
dependencies from command line with:
java -cp path-to-ivy:opt-path-to-ant  org.apache.ivy.Main -verbose -
settings ivysettings.xml -ivy ivy.xml -retrieve "lib/[artifact]-
[revision].[ext]"

I usualy place that in ivy.sh

> I was aware that Ivy could use multiple repositories, but as far as I
> can tell, it doesn't allow for a single repository to be distributed
> over several servers.

You can specify more than one resolver in your ivysettings.xml (and
you usualy do), this way you can have more than one server
distributing the same repository. Packager resolver can also specify
mirror sites for files your are distributing.

In Ivy repository description is not mixed with repository files (if
you decide that). It can be configured to depend on native extension
(good for use with JOGL or JDIC) and even the XML description syntax
can be removed if you create alternative loaders for settings and ivy
files.

To prevent creation of incompatible repositories, maven central
repository for instance places Apache Commons CLI in commons-
cli:commons-cli:1.3 while ivy roundup repository in
org.apache.commons:commons-cli:1.3, there is a namespace mechanism
that you can use to rename artifacts. This way there is no need for
central naming body and repositories can realy be distributed.

--
Krešimir Šojat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to