Permalink
Browse files

GRAILS-9297 corresponding Windows changes

  • Loading branch information...
1 parent d80780b commit f60714fc69891b160172abf4236042be85d9226d Burt Beckwith committed Jul 27, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 grails-resources/src/grails/home/bash/startGrails.bat
@@ -57,11 +57,11 @@ if "%GRAILS_HOME%" == "" set GRAILS_HOME=%DIRNAME%..
:init
-set SPRINGLOADED_PARAMS="profile=grails"
-if not "%GRAILS_AGENT_CACHE_DIR%" == "" (
-set SPRINGLOADED_PARAMS="%SPRINGLOADED_PARAMS%;cacheDir=%GRAILS_AGENT_CACHE_DIR%"
+for %%x in ("%HOMEPATH%") do set SHORTHOME=%%~fsx
+if "x%GRAILS_AGENT_CACHE_DIR%" == "x" set GRAILS_AGENT_CACHE_DIR=%SHORTHOME%/.grails/@grails.version@/
+set SPRINGLOADED_PARAMS="profile=grails;cacheDir=%GRAILS_AGENT_CACHE_DIR%"
if not exist "%GRAILS_AGENT_CACHE_DIR%" mkdir "%GRAILS_AGENT_CACHE_DIR%"
-)
+
set AGENT_STRING=-javaagent:%GRAILS_HOME:\=/%/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-@spring.loaded.version@.jar -noverify -Dspringloaded=%SPRINGLOADED_PARAMS%
set DISABLE_RELOADING=

0 comments on commit f60714f

Please sign in to comment.