diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-07-20 12:42:50 +0000 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-07-20 12:42:50 +0000 |
commit | 7ff1124e09a6acbb6eb9ea989cb246266c6ecdea (patch) | |
tree | 9647f025d16f391d291511044379080ef74b9f5c /src/main/assembly | |
parent | 18ce02ea44a241694377ebd1dd36350c4220e2b6 (diff) | |
download | sonar-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.bat | 5 |
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. |