diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-04-25 21:22:38 +0000 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-04-25 21:22:38 +0000 |
commit | d9542ebb32efcc3e9ea77e48e40883d4de568915 (patch) | |
tree | 466c929c2807b2d4761e570ba48386976202a24c /src/main/assembly/bin | |
parent | b9ce702b1c225798a94681fdcfa6b7bccad2790d (diff) | |
download | sonar-scanner-cli-d9542ebb32efcc3e9ea77e48e40883d4de568915.tar.gz sonar-scanner-cli-d9542ebb32efcc3e9ea77e48e40883d4de568915.zip |
SONARPLUGINS-1004 Add support for SONAR_RUNNER_OPTS environment variable
Diffstat (limited to 'src/main/assembly/bin')
-rwxr-xr-x | src/main/assembly/bin/sonar-runner | 4 | ||||
-rw-r--r-- | src/main/assembly/bin/sonar-runner.bat | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/main/assembly/bin/sonar-runner b/src/main/assembly/bin/sonar-runner index af95fd5..9193323 100755 --- a/src/main/assembly/bin/sonar-runner +++ b/src/main/assembly/bin/sonar-runner @@ -2,6 +2,9 @@ # # Sonar Runner Startup Script for Unix # +# Optional ENV vars: +# SONAR_RUNNER_HOME - location of runner's installed home dir +# SONAR_RUNNER_OPTS - parameters passed to the Java VM when running Sonar if [ -z "$SONAR_RUNNER_HOME" ] ; then PRG="$0" @@ -20,6 +23,7 @@ JAVA_CLASSPATH="${SONAR_RUNNER_HOME}"/lib/sonar-runner.jar:"${SONAR_RUNNER_HOME} #echo "Info: Using classpath $JAVACLASSPATH" exec "$JAVA_CMD" \ + $SONAR_RUNNER_OPTS \ -classpath $JAVA_CLASSPATH \ "-Drunner.home=${SONAR_RUNNER_HOME}" \ org.sonar.runner.Main "$@" diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat index 45bca45..5d6137e 100644 --- a/src/main/assembly/bin/sonar-runner.bat +++ b/src/main/assembly/bin/sonar-runner.bat @@ -1,5 +1,12 @@ @REM Sonar Runner Startup Script for Windows +@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_OPTS - parameters passed to the Java VM when running Sonar @echo off -"%JAVA_HOME%\bin\java.exe" -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 %* +"%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 %* |