#!/bin/bash
#
# generate a Concrete Dag by providing a DAX
#
# $Id: pegasus-plan 4507 2011-08-29 16:13:32Z rynge $

set -e

PEGASUS_CONFIG="`dirname $0`/pegasus-config"
eval `$PEGASUS_CONFIG --sh-dump`
. $PEGASUS_SHARE_DIR/common.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.planner.client.CPlanner "$@"

