aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-05-02 11:48:19 +0000
committerFabrice Bellingard <bellingard@gmail.com>2012-05-02 11:48:19 +0000
commit2bed1e46d1cf5a3e7f0f8936d85432d8d2e5e4bd (patch)
tree3cc4c7017e3e7963d50ca59f80bdf89d3e1569de
parent1027d2eb4f17edc9a1677185148db75ed30e55ab (diff)
downloadsonar-scanner-cli-2bed1e46d1cf5a3e7f0f8936d85432d8d2e5e4bd.tar.gz
sonar-scanner-cli-2bed1e46d1cf5a3e7f0f8936d85432d8d2e5e4bd.zip
SONARPLUGINS-1617 Support the properties sonar.showSql and sonar.showSqlResults
-rw-r--r--pom.xml5
-rw-r--r--src/main/assembly/bin/sonar-runner.bat18
2 files changed, 23 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 8587474..759b8db 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,6 +36,11 @@
<name>Simon Brandhof</name>
<timezone>+1</timezone>
</developer>
+ <developer>
+ <id>fabemn</id>
+ <name>Fabrice Bellingard</name>
+ <timezone>+1</timezone>
+ </developer>
</developers>
<scm>
diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat
index 8be6542..2d2b80a 100644
--- a/src/main/assembly/bin/sonar-runner.bat
+++ b/src/main/assembly/bin/sonar-runner.bat
@@ -9,12 +9,30 @@
@echo off
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJavaHome
+
+echo.
+echo ERROR: JAVA_HOME not found in your environment.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation
+echo.
+goto end
+
+:OkJavaHome
if NOT "%SONAR_RUNNER_HOME%"=="" goto run
set SONAR_RUNNER_HOME=%~dp0..
+
+@REM ==== START RUN ====
:run
echo %SONAR_RUNNER_HOME%
set PROJECT_HOME=%CD%
"%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%" "-Dproject.home=%PROJECT_HOME%" org.sonar.runner.Main %*
+
+
+@REM ==== END EXECUTION ====
+:end