From 2bed1e46d1cf5a3e7f0f8936d85432d8d2e5e4bd Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Wed, 2 May 2012 11:48:19 +0000 Subject: [PATCH] SONARPLUGINS-1617 Support the properties sonar.showSql and sonar.showSqlResults --- pom.xml | 5 +++++ src/main/assembly/bin/sonar-runner.bat | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/pom.xml b/pom.xml index 8587474..759b8db 100644 --- a/pom.xml +++ b/pom.xml @@ -36,6 +36,11 @@ Simon Brandhof +1 + + fabemn + Fabrice Bellingard + +1 + 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 -- 2.39.5