From: Fabrice Bellingard Date: Wed, 9 May 2012 08:56:30 +0000 (+0000) Subject: SONARPLUGINS-1583 Fix regression X-Git-Tag: 2.5-rc1~302 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=49292e1daed848a14191c14cd1525b3650157fc2;p=sonar-scanner-cli.git SONARPLUGINS-1583 Fix regression --- diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat index 10131fd..87007c0 100644 --- a/src/main/assembly/bin/sonar-runner.bat +++ b/src/main/assembly/bin/sonar-runner.bat @@ -21,12 +21,14 @@ echo. goto end :OkJavaHome -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.. -) +if NOT "%SONAR_RUNNER_HOME%"=="" goto cleanSonarRunnerHome +set SONAR_RUNNER_HOME=%~dp0.. +goto run + +:cleanSonarRunnerHome +@REM If the property has a trailing backslash, remove it +if %SONAR_RUNNER_HOME:~-1%==\ set SONAR_RUNNER_HOME=%SONAR_RUNNER_HOME:~0,-1% + @REM ==== START RUN ==== :run