aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/assembly
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-07-20 12:42:50 +0000
committerFabrice Bellingard <bellingard@gmail.com>2012-07-20 12:42:50 +0000
commit7ff1124e09a6acbb6eb9ea989cb246266c6ecdea (patch)
tree9647f025d16f391d291511044379080ef74b9f5c /src/main/assembly
parent18ce02ea44a241694377ebd1dd36350c4220e2b6 (diff)
downloadsonar-scanner-cli-7ff1124e09a6acbb6eb9ea989cb246266c6ecdea.tar.gz
sonar-scanner-cli-7ff1124e09a6acbb6eb9ea989cb246266c6ecdea.zip
SONARPLUGINS-1921 sonar-runner.bat fails when java.exe is found in the path but contains a space
Diffstat (limited to 'src/main/assembly')
-rw-r--r--src/main/assembly/bin/sonar-runner.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat
index 6f24d89..e75cf91 100644
--- a/src/main/assembly/bin/sonar-runner.bat
+++ b/src/main/assembly/bin/sonar-runner.bat
@@ -16,6 +16,11 @@ if not "%JAVA_HOME%" == "" goto foundJavaHome
for %%i in (java.exe) do set JAVA_EXEC=%%~$PATH:i
+if not "%JAVA_EXEC%" == "" {
+ set JAVA_EXEC="%JAVA_EXEC%"
+ goto OkJava
+}
+
if not "%JAVA_EXEC%" == "" goto OkJava
echo.