diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-02-21 18:08:28 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-02-22 15:48:05 +0100 |
commit | 3be4a20b49932527b3684f1996417360660e99bb (patch) | |
tree | ebe40455dc754828115a6261a0eca1425dcec01e /src/main/assembly/bin/sonar-scanner.bat | |
parent | 30682fe4ea1cc25f47626edd2be9e76fc3f6fc9b (diff) | |
download | sonar-scanner-cli-3be4a20b49932527b3684f1996417360660e99bb.tar.gz sonar-scanner-cli-3be4a20b49932527b3684f1996417360660e99bb.zip |
SQSCANNER-34 Don't use user-defined SONAR_SCANNER_HOME
Diffstat (limited to 'src/main/assembly/bin/sonar-scanner.bat')
-rw-r--r-- | src/main/assembly/bin/sonar-scanner.bat | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/main/assembly/bin/sonar-scanner.bat b/src/main/assembly/bin/sonar-scanner.bat index 9f3b98e..bd4c920 100644 --- a/src/main/assembly/bin/sonar-scanner.bat +++ b/src/main/assembly/bin/sonar-scanner.bat @@ -4,7 +4,6 @@ @REM JAVA_HOME - location of a JDK home dir @REM @REM Optional ENV vars: -@REM SONAR_SCANNER_HOME - location of runner's installed home dir @REM SONAR_SCANNER_OPTS - parameters passed to the Java VM when running Sonar @echo off @@ -47,26 +46,10 @@ goto error :foundJavaExeFromJavaHome set JAVA_EXEC="%JAVA_HOME%\bin\java.exe" -@REM *** SONAR SCANNER HOME VALIDATION *** :OkJava -if NOT "%SONAR_SCANNER_HOME%"=="" goto cleanSQScannerHome set SONAR_SCANNER_HOME=%~dp0.. goto run -:cleanSQScannerHome -@REM If the property has a trailing backslash, remove it -if "%SONAR_SCANNER_HOME:~-1%"=="\" set SONAR_SCANNER_HOME=%SONAR_SCANNER_HOME:~0,-1% - -@REM Check if the provided SONAR_SCANNER_HOME is a valid install dir -IF EXIST "%SONAR_SCANNER_HOME%\lib\sonar-scanner-cli-${project.version}.jar" goto run - -echo. -echo ERROR: SONAR_SCANNER_HOME exists but does not point to a valid install -echo directory: %SONAR_SCANNER_HOME% -echo. -goto error - - @REM ==== START RUN ==== :run |