#! /bin/sh

INSTALL_DIR=$( cd "$( dirname "$0" )" && pwd )/..

CP=$INSTALL_DIR/lib/com.alarmpoint.apex.integrationagent.jar:$INSTALL_DIR/conf/cli:$INSTALL_DIR/lib/mule-1.4.3/lib/mule/*:$INSTALL_DIR/lib/mule-1.4.3/lib/user/*:$INSTALL_DIR/lib/mule-1.4.3/lib/opt/*

ORIG_DIR=$CD
cd $INSTALL_DIR

jre/bin/java  -cp $CP com.alarmpoint.integrationagent.cli.iapasswd.IAPassword $1 $2 $3 $4 $5 $6

EXIT_CODE=$?
cd $ORIG_DIR
exit $EXIT_CODE
