#!/bin/bash
if [ -n "${DEBUG}" ];
then
  JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8787"
else
  JAVA_OPTS="$JAVA_OPTS"
fi

if [ -z "${PROSPERO_HOME}" ];
then
 full_path=$(realpath $0)
 PROSPERO_HOME=$(dirname $full_path)
fi
CLASSPATH=( "${PROSPERO_HOME}/prospero-cli/target/"prospero-cli-*-shaded.jar )

java ${JAVA_OPTS} -jar "${CLASSPATH}" "$@"
