Browse Source

SQSCANNER-41 Handle parentheses in script installation path (#32)

tags/3.0.3.778
Janos Gyerik 7 years ago
parent
commit
a0dc129477
2 changed files with 5 additions and 3 deletions
  1. 1
    1
      pom.xml
  2. 4
    2
      src/main/assembly/bin/sonar-scanner.bat

+ 1
- 1
pom.xml View File

@@ -8,7 +8,7 @@

<groupId>org.sonarsource.scanner.cli</groupId>
<artifactId>sonar-scanner-cli</artifactId>
<version>3.0.2-SNAPSHOT</version>
<version>3.0.3-SNAPSHOT</version>
<packaging>jar</packaging>
<name>SonarQube Scanner</name>
<url>http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner</url>

+ 4
- 2
src/main/assembly/bin/sonar-scanner.bat View File

@@ -13,14 +13,16 @@ set ERROR_CODE=0
@REM set local scope for the variables with windows NT shell
@setlocal

set SONAR_SCANNER_HOME=%~dp0..
set "scriptdir=%~dp0"
if #%scriptdir:~-1%# == #\# set scriptdir=%scriptdir:~0,-1%
set "SONAR_SCANNER_HOME=%scriptdir%\.."

@REM ==== START VALIDATION ====
@REM *** JAVA EXEC VALIDATION ***

set use_embedded_jre=${use_embedded_jre}
if "%use_embedded_jre%" == "true" (
set JAVA_HOME=%SONAR_SCANNER_HOME%\jre
set "JAVA_HOME=%SONAR_SCANNER_HOME%\jre"
)

if not "%JAVA_HOME%" == "" goto foundJavaHome

Loading…
Cancel
Save