# Apache Ant 1.7.0
# ================
# Prerequisites:
# JDK (Java Development Kit)
cd
test -f installed/apache-ant-1.7.0-src.tar.bz2 &&
mv installed/apache-ant-1.7.0-src.tar.bz2 .
test ! -f apache-ant-1.7.0-src.tar.bz2 &&
wget http://apache.seekmeup.com/ant/source/apache-ant-1.7.0-src.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "apache-ant-*" -exec rm -r {} \;
tar xjvf ~/apache-ant-1.7.0-src.tar.bz2
cd apache-ant-1.7.0
test $UID = 0 && chown -R root:root .
chmod -R u+w .
# Make sure $JAVA_HOME is set, this should've been taken care of when
# you installed the JDK
# Put JUnit in ./lib/optional/ or the build will fail
# (see http://ant.apache.org/faq.html#170-requires-junit)
mkdir lib/optional
cd lib/optional
wget http://superb-east.dl.sourceforge.net/sourceforge/junit/junit-4.4.jar
cd ../..