#!/bin/sh
#
# $Id: bant,v 1.3 2002/02/05 20:27:34 mdb Exp $
#
# Invokes ant with the necessary classpath to build the bundles.

BINDIR=`dirname $0`

# add all JAR files in /usr/share/ant/lib/ to CLASSPATH
SYSTEMCP=`echo $JAVA_LIBS/*.jar | tr ' ' ':'`
# add all JAR files in /usr/share/ant/lib/ to CLASSPATH
PROJECTCP=`echo $BINDIR/../../lib/*.jar | tr ' ' ':'`
# also add narya.jar
export CLASSPATH=$BINDIR/../../dist/narya.jar:$PROJECTCP:$SYSTEMCP
# and invoke ant with the passed through targets
ant "$@"
