Browse Source

SONARPLUGINS-1583 Trailing slash on Windows XP prevent Sonar Runner to run

tags/2.5-rc1
Fabrice Bellingard 12 years ago
parent
commit
83e9baf9a9
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      src/main/assembly/bin/sonar-runner.bat

+ 6
- 3
src/main/assembly/bin/sonar-runner.bat View File

@@ -21,9 +21,12 @@ echo.
goto end

:OkJavaHome
if NOT "%SONAR_RUNNER_HOME%"=="" goto run
set SONAR_RUNNER_HOME=%~dp0..

if NOT "%SONAR_RUNNER_HOME%"=="" (
@REM If the property has a trailing backslash, remove it
if %SONAR_RUNNER_HOME:~-1%==\ set SONAR_RUNNER_HOME=%SONAR_RUNNER_HOME:~0,-1%
) else (
set SONAR_RUNNER_HOME=%~dp0..
)

@REM ==== START RUN ====
:run

Loading…
Cancel
Save