#!/bin/sh
#
# command line client for pegasus aws batch
#
# $Id$

set -e

PEGASUS_CONFIG="`dirname "$0"`/pegasus-config"
eval `"$PEGASUS_CONFIG" --sh-dump`
. "$PEGASUS_SHARE_DIR/sh/java.sh"

# PEGASUS_HOME should not be set - this is so we can find all the
# places in the planner which still depends on PEGASUS_HOME
unset PEGASUS_HOME

# run java program
nice "${JAVA}" \
       "-Dpegasus.home.sysconfdir=$PEGASUS_CONF_DIR" \
       "-Dpegasus.home.bindir=$PEGASUS_BIN_DIR" \
       "-Dpegasus.home.sharedstatedir=$PEGASUS_SHARE_DIR" \
       "-Dpegasus.home.schemadir=$PEGASUS_SCHEMA_DIR" \
       $addon edu.isi.pegasus.aws.batch.client.PegasusAWSBatch $args

