if [ -z "$GRAILS_HOME" ]; then
echo "Please set GRAILS_HOME environment variable to location, where Grails is installed." 1>&2
exit 1
fi
if [ ! -f "$GRAILS_HOME/bin/startGrails" ]; then
echo "It must contain path to the directory where Grails is installed!" 1>&2
exit 1
fi
JAVA_OPTS="-Xdebug -Xnoagent -Dgrails.full.stacktrace=true -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"