HI all.
I hope that this is the right forum for my question.
I'm using mandrake 9.2 and trying to implement nightly builds on my Java Project. I using ANT to do this. I want to setup CRON to do this.
Problem is the the environment variables for ant are not setup when CRON calls ANT, so I must set up these in the script.
Am I correct so far?
The Script that I am calling looks like this:
Code:
export $PATH=$PATH:/usr/local/apache-ant-1.6.2
echo "New path is: " >> /tmp/debug.txt
echo $PATH >> /tmp/debug.txt
export $ANT_HOME=/usr/local/apache-ant-1.6.2
echo "Ant_Home:" >> /tmp/debug.txt
echo $ANT_HOME >> /tmp/debug.txt
ant -buildfile /home/user/tempBuild/build.xml
I used debug.txt to see if the environment variables have changed, and they did not. My Ant script is never run so I assume this is the problem.
What am I doing wrong?
Any advice would be appreciated.
Thanks in advance.