#!/bin/sh

#
# Helper script for calling Ant
#
# Author: Paul Ivancsics
# Version: $Id: runAnt.sh,v 1.9 2003/04/07 13:36:43 peck Exp $
#


ANT=../build/tools/jakarta-ant-1.5.1/bin/ant
PROJECT="$1"
BUILDFILE=build.xml
export SCRIPT_SUFFIX=sh
export MOA_COMMON_JAR=../common/tmp/dist/moa-common.jar
export MOA_COMMON_TEST_JAR=../common/tmp/dist/moa-common-test.jar

echo 
echo 
echo BUILDING $PROJECT 
echo 


cd ../../$PROJECT

if [ "$1" == "common" ]; then
  sh $ANT -f $BUILDFILE dist-all
else
  sh $ANT -f $BUILDFILE $2 $3 $4 $5 $6 $7 $8 $9
fi