#!/bin/sh

D="$(dirname "$0")"
D="$(cd "${D}"; pwd)"

if [ ! -d "${D}/groovy" ]; then
  "${D}/prepare.sh"
fi

CLASSPATH="${D}/../build/classes:${CLASSPATH}"
export CLASSPATH

GROOVY_DIR="${D}/groovy"

exec "${GROOVY_DIR}/bin/groovy" "$@"

#!/bin/sh

D="$(dirname "$0")"
D="$(cd "${D}"; pwd)"

if [ ! -d "${D}/groovy" ]; then
  "${D}/prepare.sh"
fi

CLASSPATH="${D}/../build/classes:${CLASSPATH}"
export CLASSPATH

GROOVY_HOME="${D}/groovy"
export GROOVY_HOME

exec "${GROOVY_HOME}/bin/groovy" "$@"

Set GROOVY_HOME, otherwise the GroovyWrapper aborts
Set GROOVY_HOME, otherwise the GroovyWrapper aborts
