Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 50 lines (44 sloc) 1.42 KB
#!/bin/bash
# Obtain absolute path of this script
GRIDSAM_HOME=$PWD/`dirname "$0"`
cd "$GRIDSAM_HOME"
CMD=$1
shift
case $CMD in
"BESCreateActivity") ;;
"BESGetActivityDocuments") ;;
"BESGetActivityStatuses") ;;
"BESGetFactoryAttributesDocument") ;;
"BESStartAcceptingNewActivities") ;;
"BESStopAcceptingNewActivities") ;;
"BESTerminateActivities") ;;
"GridSAMFileTransfer") ;;
"GridSAMFTPServer") ;;
"GridSAMGroovyBootstrap") ;;
"GridSAMMultiJSDLStressTest") ;;
"GridSAMRerun") ;;
"GridSAMStart") ;;
"GridSAMStatus") ;;
"GridSAMStatusSubscribe") ;;
"GridSAMStressTest") ;;
"GridSAMSubmit") ;;
"GridSAMTerminate") ;;
"GridSAMVersion") ;;
*)
echo "Unrecognised command '$CMD'"
exit 1
;;
esac
for j in `ls lib/*.jar`; do
GS_CLASSPATH=${GS_CLASSPATH}:${j}
done
exec java -classpath "$GS_CLASSPATH:${GRIDSAM_HOME}/conf" \
-Djava.endorsed.dirs=${GRIDSAM_HOME}/endorsed \
-Dorg.apache.ws.security.crypto.merlin.file=${GRIDSAM_HOME}/conf/gridsam-default.ks \
-Dorg.apache.ws.security.crypto.merlin.crldir=${GRIDSAM_HOME}/conf/CRLs \
-Dlog4j.appender.LOG.File=${GRIDSAM_HOME}/client.log \
-Djava.util.logging.config.file="${GRIDSAM_HOME}/conf/logging.properties" \
-Dlog4j.configuration="file://${GRIDSAM_HOME}/conf/log4j.properties" \
-Daxis.ClientConfigFile="${GRIDSAM_HOME}/conf/client-config.wsdd" \
-Dgrid.config.dir="${GRIDSAM_HOME}/conf" \
org.icenigrid.gridsam.client.cli.$CMD $@