aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/assembly/bin/sonar-runner.bat
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-04-25 21:22:38 +0000
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-04-25 21:22:38 +0000
commitd9542ebb32efcc3e9ea77e48e40883d4de568915 (patch)
tree466c929c2807b2d4761e570ba48386976202a24c /src/main/assembly/bin/sonar-runner.bat
parentb9ce702b1c225798a94681fdcfa6b7bccad2790d (diff)
downloadsonar-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/sonar-runner.bat')
-rw-r--r--src/main/assembly/bin/sonar-runner.bat9
1 files changed, 8 insertions, 1 deletions
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 %*