#!/bin/bash
export JAVA_HOME=$(sed -ne '/JDKHome/{s/.*<JDKHome>\(.*\)<\/JDKHome>.*/\1/p;q;}' settings.xml)
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/rt.jar
export PATH=$JAVA_HOME/bin:${PATH}
# Do not combine following lines; leads to errors every other run:
tools/apache-ant-1.9.16/bin/ant clean
tools/apache-ant-1.9.16/bin/ant status
