groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: GROOVY-8754: support JAVA_HOME including spaces on Windows (closes #784)
Date Sat, 18 Aug 2018 00:41:24 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X eeefc8432 -> f85374568


GROOVY-8754: support JAVA_HOME including spaces on Windows (closes #784)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/f8537456
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/f8537456
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/f8537456

Branch: refs/heads/GROOVY_2_5_X
Commit: f853745689602934a0701692b4310a84e2a0559a
Parents: eeefc84
Author: amadarain <t.f.octo@gmail.com>
Authored: Tue Aug 14 17:16:16 2018 +0900
Committer: Paul King <paulk@asert.com.au>
Committed: Sat Aug 18 10:41:07 2018 +1000

----------------------------------------------------------------------
 src/bin/startGroovy.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/f8537456/src/bin/startGroovy.bat
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy.bat b/src/bin/startGroovy.bat
index e755ed3..c2dc3da 100644
--- a/src/bin/startGroovy.bat
+++ b/src/bin/startGroovy.bat
@@ -266,7 +266,7 @@ if not "%TOOLS_JAR%" == "" set GROOVY_OPTS=%GROOVY_OPTS% -Dtools.jar="%TOOLS_JAR
 set GROOVY_OPTS=%GROOVY_OPTS% -Dgroovy.starter.conf="%STARTER_CONF%"
 set GROOVY_OPTS=%GROOVY_OPTS% -Dscript.name="%GROOVY_SCRIPT_NAME%"
 
-for /f "tokens=3" %%g in ('%JAVA_EXE% -version 2^>^&1 ^| findstr /i "version"') do
(
+for /f "tokens=3" %%g in ('call "%JAVA_EXE%" -version 2^>^&1 ^| findstr /i "version"')
do (
   SET JAVA_VERSION=%%g
 )
 for /f "useback tokens=*" %%a in ('%JAVA_VERSION%') do set JAVA_VERSION=%%~a


Mime
View raw message