This post originated from an RSS feed registered with Agile Buzz
by Ryan Ransford.
Original Post: Setting Up Gant
Feed Title: Active-Active Configuration
Feed URL: http://active-active.blogspot.com/feeds/posts/default
Feed Description: Active-Active Configuration is a blog about making my place in the enterprise world better. This blog is primarily focused on Java articles, but be prepared to be challenged by posts about dynamic languages, agile tools, and the lighter side of geek culture.
To get things set up for this experiment, I need to do the following:
Create and check-out an experimental branch of our project.
Get the latest version of all of the appropriate tools:
Groovy 1.6.3
Gant 1.6.1 for Groovy 1.6
Ant 1.7.1
I typically explode all of the archives into a local directory named javalib. That way, I know where to go to get all of my jars/source/documentation.
Setting-up PATHs and *_HOMEs
Now that I have all of these tools un-jarred, I need to tell the computer where to find everything. First, since I haven't been on the command-line in quite some time, I ensure that java is still set up correctly and is the expected version.
Java
%->java -version java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
I also want to make sure that Ant, Groovy, and Gant are setup correctly and are available anywhere. I need to set PATH and *_HOME envrionment variables so that these programs all work correctly.
Ant
%->echo %PATH% <path information> %->set PATH=%PATH%;<javalib-dir>\apache-ant-1.7.1\bin; %->echo %ANT_HOME% %->set ANT_HOME=<javalib-dir>\apache-ant-1.7.1 %->ant -version Apache Ant version 1.7.1 compiled on June 27 2008
%->echo %PATH% <path information> %->set PATH=%PATH%;<javalib-dir>\gant-1.6.1\bin; %->echo %GANT_HOME% %->set GANT_HOME=<javalib-dir>\gant-1.6.1 %->gant -version Gant version 1.6.1
Note that to get the gant -version command to complete, I had to modify the file %GANT_HOME%/bin/startGroovy.bat. It contains an explicit reference to the groovy-1.6.0.jar. I just had to replace it with an explicit reference to the groovy-1.6.3.jar.