«« Read-Only CVS Access with pserver DynDNS »»
blog header image
Setting Up Ant on Linux

To set up Ant on the AudioMan development box I had to install Java first. I used the RPM method which installed Java in /usr/java/j2sdk1.4.2_03.

1. Download the binary distribution of Ant and unzip it into /usr/local.
2. Set the ANT_HOME environment variable to the location of Ant:

export ANT_HOME=/usr/local/apache-ant-1.6.0

3. Set the JAVA_HOME environment variable to the location of Java:

export JAVA_HOME=/usr/java/j2sdk1.4.2_03

4. Add the Ant directory to the PATH environment variable:

export PATH=$PATH:/usr/local/apache-ant-1.6.0/bin

5. Run ant with no parameters. You should get the error message:

Buildfile: build.xml does not exist! Build failed.

The next thing I want to do is check out the AudioMan project from CVS and build it with Ant. I could put those commands in a shell script and run it daily as a cron job.

Posted at December 29, 2003 at 02:05 PM EST
Last updated December 29, 2003 at 02:05 PM EST
Comments

What shell are you working in for all you commands? Is this bash? I know that for doing env vars it can be quite different from shell to shell...

» Posted by: Jim at December 31, 2003 06:29 PM

It's the default shell installed with Red Hat 8. I think it's bash.

» Posted by: Ryan at January 2, 2004 12:02 AM

echo $SHELL

» Posted by: roy at January 3, 2004 03:32 AM

I should note that this returns your login shell. If you have entered another shell (like csh - c shell) after you logged in, then you will not get the proper identification.

» Posted by: roy at January 3, 2004 03:36 AM
Google
 
Search scope: Web ryanlowe.ca