diff options
author | mawl <mawl@users.noreply.github.com> | 2017-12-07 09:33:22 +0100 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-12-07 09:33:22 +0100 |
commit | 7465b0c71083c5ea1297cbd44f86a84bc00a665b (patch) | |
tree | 513f5769ea82707226a793b65c4c8f7dac5bcc69 /src | |
parent | d238f7fa3ea39730262976e494cfd03427fa027d (diff) | |
download | sonar-scanner-cli-7465b0c71083c5ea1297cbd44f86a84bc00a665b.tar.gz sonar-scanner-cli-7465b0c71083c5ea1297cbd44f86a84bc00a665b.zip |
Remove trailing backslash from project.home (#39)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/assembly/bin/sonar-scanner.bat | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/assembly/bin/sonar-scanner.bat b/src/main/assembly/bin/sonar-scanner.bat index 970af4b..e71f518 100644 --- a/src/main/assembly/bin/sonar-scanner.bat +++ b/src/main/assembly/bin/sonar-scanner.bat @@ -65,6 +65,9 @@ goto run set PROJECT_HOME=%CD% +@REM remove trailing backslash, see https://groups.google.com/d/msg/sonarqube/wi7u-CyV_tc/3u9UKRmABQAJ +IF %PROJECT_HOME:~-1% == \ SET PROJECT_HOME=%PROJECT_HOME:~0,-1% + %JAVA_EXEC% -Djava.awt.headless=true %SONAR_SCANNER_DEBUG_OPTS% %SONAR_SCANNER_OPTS% -cp "%SONAR_SCANNER_HOME%\lib\sonar-scanner-cli-${project.version}.jar" "-Dscanner.home=%SONAR_SCANNER_HOME%" "-Dproject.home=%PROJECT_HOME%" org.sonarsource.scanner.cli.Main %* if ERRORLEVEL 1 goto error goto end |