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