diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-04-26 15:08:37 +0000 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-04-26 15:08:37 +0000 |
commit | 1189b4b5f6670267b267ec4c18ac5bae8633b532 (patch) | |
tree | 4d9e32737923669b5ef752ef192a536f3dbe89e7 /src/main/assembly/bin | |
parent | d9542ebb32efcc3e9ea77e48e40883d4de568915 (diff) | |
download | sonar-scanner-cli-1189b4b5f6670267b267ec4c18ac5bae8633b532.tar.gz sonar-scanner-cli-1189b4b5f6670267b267ec4c18ac5bae8633b532.zip |
SONARPLUGINS-1114 Automatically determine SONAR_RUNNER_HOME on Windows
Diffstat (limited to 'src/main/assembly/bin')
-rw-r--r-- | src/main/assembly/bin/sonar-runner.bat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat index 5d6137e..4635e80 100644 --- a/src/main/assembly/bin/sonar-runner.bat +++ b/src/main/assembly/bin/sonar-runner.bat @@ -2,11 +2,16 @@ @REM @REM Required ENV vars: @REM JAVA_HOME - location of a JDK home dir -@REM SONAR_RUNNER_HOME - location of runner's installed home dir @REM @REM Optional ENV vars: +@REM SONAR_RUNNER_HOME - location of runner's installed home dir @REM SONAR_RUNNER_OPTS - parameters passed to the Java VM when running Sonar @echo off +if NOT "%SONAR_RUNNER_HOME%"=="" goto run +set SONAR_RUNNER_HOME=%~dp0.. + +:run +echo %SONAR_RUNNER_HOME% "%JAVA_HOME%\bin\java.exe" %SONAR_RUNNER_OPTS% -classpath "%SONAR_RUNNER_HOME%\lib\sonar-runner.jar";"%SONAR_RUNNER_HOME%\lib\sonar-batch-bootstrapper.jar" "-Drunner.home=%SONAR_RUNNER_HOME%" org.sonar.runner.Main %* |