ant not available on this box
richardtape opened this issue · comments
First, thanks so much for putting this together. I've had a lot of fun playing with it. I'm pretty new to this stuff, so it's helped me a tonne.
I had an issue whereby a jenkins build couldn't run and it transpired to be because ant
wasn't available.
So, here's what I did to fix this.
cd into the directory where this repo is cloned
ssh into the vagrant box with vagrant ssh
then
sudo apt-get install ant
sudo apt-get install openjdk-7-jdk
sudo cp /usr/lib/jvm/.java-1.7.0-openjdk-amd64.jinfo /usr/lib/jvm/.java-7-openjdk-amd64.jinfo
sudo update-java-alternatives -s java-7-openjdk-amd64
Lines 2,3 and 4 are necessary because the default ant that is installed throws up a warning something along the lines of Unable to locate tools.jar.
which causes Jenkins to barf.
I ran those, (the vagrant sudo password on this box is 'vagrant' for those who don't know) and I was able to run a build.
Again, thanks so much.
glad you liked it - and thanks for sharing your work, I will definitely add these as a feature later in the day.