Skip to content

Commit a01a4fa

Browse files
committed
fix for GRAILS-5281 "startGrails.bat fails on windows if no GRAILS_HOME is set"
1 parent a6b1777 commit a01a4fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/startGrails.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ goto end
4545
:have_JAVA_HOME
4646
@rem Validate JAVA_HOME
4747
%COMMAND_COM% /C DIR "%JAVA_HOME%" 2>&1 | %FIND_EXE% /I /C "%JAVA_HOME%" >nul
48-
if not errorlevel 1 goto check_GROOVY_HOME
48+
if not errorlevel 1 goto check_GRAILS_HOME
4949

5050
echo.
5151
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -55,9 +55,9 @@ echo location of your Java installation.
5555
echo.
5656
goto end
5757

58-
:check_GROOVY_HOME
59-
@rem Define GROOVY_HOME if not set
60-
if "%GROOVY_HOME%" == "" set GROOVY_HOME=%DIRNAME%..
58+
:check_GRAILS_HOME
59+
@rem Define GRAILS_HOME if not set
60+
if "%GRAILS_HOME%" == "" set GRAILS_HOME=%DIRNAME%..
6161

6262
:init
6363
@rem Get command-line arguments, handling Windowz variants

0 commit comments

Comments
 (0)