#!/bin/sh # Copyright 2004-2005 Uwyn bvba/sprl # Distributed under the terms of the GNU General Public License, v2 or later # $Id$ PROGDIR="`dirname $0`" case "${PROGDIR}" in [^/]*) export PROGDIR="`pwd`/${PROGDIR}" ;; esac export ANT_HOME="${PROGDIR}/lib/ant-1.6" export JSR14DISTR="${PROGDIR}/generics" export PATH="${ANT_HOME}/bin:${PATH}" export CGJAVAC_ADDITIONAL_OPTIONS="-Xbootclasspath/p:${JSR14DISTR}/collect.jar -incremental" export EXECUTABLE="$(which cgjavac)" if [ -z "$EXECUTABLE" ] then export EXECUTABLE="${JSR14DISTR}/scripts/javac.sh" fi echo "Using ${EXECUTABLE}" echo "Using $(which ant)" if [ ! "$*" ]; then ant -Dexecutable="$EXECUTABLE" -Dtarget=1.4-cgjavac else ant -Dexecutable="$EXECUTABLE" -Dtarget=1.4-cgjavac $@ fi