diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-05-02 13:41:53 +0000 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-05-02 13:41:53 +0000 |
commit | 83e9baf9a94f52fe5f8a3ba0ad8a819a021fd68d (patch) | |
tree | 15352ec7cc7d57eccae246953574682ee51f9733 /src/main/assembly/bin/sonar-runner.bat | |
parent | 2bed1e46d1cf5a3e7f0f8936d85432d8d2e5e4bd (diff) | |
download | sonar-scanner-cli-83e9baf9a94f52fe5f8a3ba0ad8a819a021fd68d.tar.gz sonar-scanner-cli-83e9baf9a94f52fe5f8a3ba0ad8a819a021fd68d.zip |
SONARPLUGINS-1583 Trailing slash on Windows XP prevent Sonar Runner to run
Diffstat (limited to 'src/main/assembly/bin/sonar-runner.bat')
-rw-r--r-- | src/main/assembly/bin/sonar-runner.bat | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat index 2d2b80a..10131fd 100644 --- a/src/main/assembly/bin/sonar-runner.bat +++ b/src/main/assembly/bin/sonar-runner.bat @@ -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 |