Set up lab machines for ant tasks
: Greg Newton
Minutes: 15
Java and ant are already installed on the machines (ant is part of oxygen) so we can adjust our workspace (via the .bashrc file) to make ant accessible on the CLI thusly:
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 export ANT_HOME=/usr/lib/oxygen/tools/ant export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin:/usr/local/bin:/usr/lib/oxygen/tools/ant/bin
If you want to use it right away run source ~/.bashrc
and test with echo $ANT_HOME
- it should echo /usr/lib/oxygen/tools/ant
to the terminal prompt.