Browse Source

SONARPLUGINS-1921 sonar-runner.bat fails when java.exe is found in the path but contains a space

tags/2.5-rc1
Fabrice Bellingard 12 years ago
parent
commit
7ff1124e09
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/main/assembly/bin/sonar-runner.bat

+ 5
- 0
src/main/assembly/bin/sonar-runner.bat View File

@@ -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.

Loading…
Cancel
Save