Wednesday, 31 December 2008

Apache Ant + Ivy on OSX

In order to get Apache Ivy working from the command-line on OS X, I did the following:

(Get the current versions of Ant and Ivy)

(or copy the folder to /usr/local and create a symlink to ant)

(For the sake of simplicity, I'm just copying the ivy jar into Ant's lib folder):

(Set the home for the current session - this should be added to bashrc in order for it to work permanently)

Test with:

(You should see something like)
Apache Ant version 1.7.1 compiled on June 27 2008

If so, you can go into one of the ivy example folders:

If this has worked, you should see:

[java] standard message : hello ivy !
[java] capitalized by org.apache.commons.lang.WordUtils : Hello Ivy !


If you want to use ivy in Eclipse, all you should need to do is make sure the jar is in the buildpath.

I found this guide pretty useful for installing Ant in OS X:

No comments: