413N/A#!/bin/sh
413N/A
413N/Aif [ -z "$GRAILS_HOME" ]; then
413N/A echo "Please set GRAILS_HOME environment variable to location, where Grails is installed." 1>&2
413N/A echo "(Default location is /usr/grails/[version], e.g. /usr/grails/1.0.3)" 1>&2
413N/A exit 1
413N/Afi
413N/A
413N/Aif [ ! -f "$GRAILS_HOME/bin/startGrails" ]; then
413N/A echo "GRAILS_HOME is not set properly: $GRAILS_HOME" 1>&2
413N/A echo "It must contain path to the directory where Grails is installed!" 1>&2
413N/A exit 1
413N/Afi
413N/A
413N/A. "$GRAILS_HOME/bin/startGrails"
413N/A
413N/AJAVA_OPTS="-Xdebug -Xnoagent -Dgrails.full.stacktrace=true -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
413N/A
413N/AstartGrails org.codehaus.groovy.grails.cli.GrailsScriptRunner "$@"
413N/A