components/grails/files/grails
changeset 4915 48f204cc245c
parent 4914 b674fc72fe33
child 4916 b49f3ed3d841
equal deleted inserted replaced
4914:b674fc72fe33 4915:48f204cc245c
     1 #!/bin/sh
       
     2 
       
     3 if [ -z "$GRAILS_HOME" ]; then
       
     4     echo "Please set GRAILS_HOME environment variable to location, where Grails is installed." 1>&2
       
     5     echo "(Default location is /usr/grails/[version], e.g. /usr/grails/1.0.3)" 1>&2
       
     6     exit 1
       
     7 fi
       
     8 
       
     9 if [ ! -f "$GRAILS_HOME/bin/startGrails" ]; then
       
    10     echo "GRAILS_HOME is not set properly: $GRAILS_HOME" 1>&2
       
    11     echo "It must contain path to the directory where Grails is installed!" 1>&2
       
    12     exit 1
       
    13 fi
       
    14 
       
    15 . "$GRAILS_HOME/bin/startGrails"
       
    16 
       
    17 startGrails org.codehaus.groovy.grails.cli.GrailsScriptRunner "$@"
       
    18