Installing UTF-X on a Mac

This is a record of my first attempt to install UTF-X, XSLT Unit testing framework, on Mac OS X. This is a link to UTF-X’s project page: http://utf-x.sourceforge.net/

Note that the steps are based on RUBRIC’s documentation.

1. Installing JDK from http://java.sun.com

2. Installing apache ant from http://ant.apache.org/

2.1 Download and Unzip to a directory, say ~/ant/

2.2 Add ant/bin to System Path

2.2.1 vi .profile then add “EXPORT PATH=$PATH:/path/to/ant/bin”

2.3 Create a new system variable “ANT_HOME” with a value “/path/to/ant”

2.3.1 vi .profile then add “EXPORT ANT_HOME=/path/to/ant”

2.4 Create a new system variable “JAVA_HOME” with a value “/path/to/java” for example “/Library/Java/Home”

2.4.1 vi .profile and add “EXPORT JAVA_HOME=/Library/Java/Home”

2.5 run source .profile to use those variables

3. Installing UTF-X

3.1 Download and Unzip to a directory, say ~/utf-x

3.2 Compile UTF-X samples by running “ant samples” via Terminal

Ahh it works.

Advertisements