Deluan Cotts Quintão wrote:
Hi there,
I have finally published my script for auto-switching Grails versions, based
on project's application.properties:
http://github.com/deluan/grails.sh
It runs on Mac OS X, Linux and Windows+Cygwin
There is some documentation there, feedbacks are welcome!
Deluan.
Thanks Deluan!
I also added an OPTS override (tested in Debian with Grails-1.1 through
Grails-1.2.2):
+# Override OPTS.
+export GRAILS_OPTS=" "
+export JAVA_OPTS="-server -Xmx512m -XX:MaxPermSize=256m"
export GRAILS_HOME=${BASE_GRAILS_PATH}/grails-${VERSION}
GRAILS_CMD=${GRAILS_HOME}/bin/grails
if [ ! -x "$GRAILS_CMD" ]; then
echo "Error: grails command not found at '$GRAILS_CMD'!"
exit 3
fi
exec $GRAILS_CMD $*