]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
SONARPLUGINS-1617 Support the properties sonar.showSql and sonar.showSqlResults
authorFabrice Bellingard <bellingard@gmail.com>
Wed, 2 May 2012 11:48:19 +0000 (11:48 +0000)
committerFabrice Bellingard <bellingard@gmail.com>
Wed, 2 May 2012 11:48:19 +0000 (11:48 +0000)
pom.xml
src/main/assembly/bin/sonar-runner.bat

diff --git a/pom.xml b/pom.xml
index 8587474662247a411f186e54e7c0b4fb11dcc3a0..759b8db3024badea993a00e5e7c19a18176e039b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       <name>Simon Brandhof</name>
       <timezone>+1</timezone>
     </developer>
+    <developer>
+      <id>fabemn</id>
+      <name>Fabrice Bellingard</name>
+      <timezone>+1</timezone>
+    </developer>
   </developers>
 
   <scm>
index 8be6542ccb5d09419c804a80716d6bb9fce52c59..2d2b80a9439b486f8c7b504d6db298cfb52ffa1b 100644 (file)
@@ -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