Browse files

Change Ant version to 1.8.2, the previous one is not available on the…

… server anymore.

Do not download Ant again when it is still present in the build dir.
  • Loading branch information...
1 parent 674df2f commit c4337b5fb9f1702d3731239a895f93f2f366b35d Bruno Dumon committed with Mar 3, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 run.sh
View
8 run.sh
@@ -5,13 +5,15 @@
set -x
-ANT_VERSION="1.8.1"
+ANT_VERSION="1.8.2"
ANT_TARBALL="apache-ant-${ANT_VERSION}-bin.tar.gz"
ANT_TARBALL_URL="http://www.gtlib.gatech.edu/pub/apache/ant/binaries/${ANT_TARBALL}"
setup_ant() {
- wget $WGET_OPTS -P "${BINDIR}/build" "${ANT_TARBALL_URL}"
- tar -C "${BINDIR}/build" -zxf "${BINDIR}/build/apache-ant-${ANT_VERSION}-bin.tar.gz"
+ if [ ! -d ${BINDIR}/build/apache-ant-${ANT_VERSION} ] ; then
+ wget $WGET_OPTS -P "${BINDIR}/build" "${ANT_TARBALL_URL}"
+ tar -C "${BINDIR}/build" -zxf "${BINDIR}/build/apache-ant-${ANT_VERSION}-bin.tar.gz"
+ fi
ANT_HOME="${BINDIR}/build/apache-ant-${ANT_VERSION}"
PATH="${ANT_HOME}/bin:${PATH}"

0 comments on commit c4337b5

Please sign in to comment.