groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Minor fix for getting java executable
Date Fri, 22 Sep 2017 08:34:06 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 72b1d607b -> 12b36d9a5


Minor fix for getting java executable


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

Branch: refs/heads/master
Commit: 12b36d9a5137e6c1ac685f2e4e6fdb8089510573
Parents: 72b1d60
Author: sunlan <sunlan@apache.org>
Authored: Fri Sep 22 16:34:00 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Fri Sep 22 16:34:00 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/12b36d9a/src/bin/startGroovy.bat
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy.bat b/src/bin/startGroovy.bat
index afc6c95..2c7aee7 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 -version 2^>^&1 ^| findstr /i "version"') do (
+for /f "tokens=3" %%g in ('%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