diff options
-rwxr-xr-x | sonar-runner-cli/src/main/assembly/bin/sonar-runner | 1 | ||||
-rw-r--r-- | sonar-runner-cli/src/main/assembly/bin/sonar-runner.bat | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sonar-runner-cli/src/main/assembly/bin/sonar-runner b/sonar-runner-cli/src/main/assembly/bin/sonar-runner index 5529717..eea044a 100755 --- a/sonar-runner-cli/src/main/assembly/bin/sonar-runner +++ b/sonar-runner-cli/src/main/assembly/bin/sonar-runner @@ -101,6 +101,7 @@ PROJECT_HOME=`pwd` #echo "Info: Using project $PROJECT_HOME" exec "$JAVA_CMD" \ + -Djava.awt.headless=true \ $SONAR_RUNNER_OPTS \ -classpath $JAR_FILE \ "-Drunner.home=\${SONAR_RUNNER_HOME}" \ diff --git a/sonar-runner-cli/src/main/assembly/bin/sonar-runner.bat b/sonar-runner-cli/src/main/assembly/bin/sonar-runner.bat index 2b2253e..67fa742 100644 --- a/sonar-runner-cli/src/main/assembly/bin/sonar-runner.bat +++ b/sonar-runner-cli/src/main/assembly/bin/sonar-runner.bat @@ -74,7 +74,7 @@ echo %SONAR_RUNNER_HOME% set PROJECT_HOME=%CD% -%JAVA_EXEC% %SONAR_RUNNER_OPTS% -cp "%SONAR_RUNNER_HOME%\lib\sonar-runner-dist-${project.version}.jar" "-Drunner.home=%SONAR_RUNNER_HOME%" "-Dproject.home=%PROJECT_HOME%" org.sonar.runner.cli.Main %* +%JAVA_EXEC% -Djava.awt.headless=true %SONAR_RUNNER_OPTS% -cp "%SONAR_RUNNER_HOME%\lib\sonar-runner-dist-${project.version}.jar" "-Drunner.home=%SONAR_RUNNER_HOME%" "-Dproject.home=%PROJECT_HOME%" org.sonar.runner.cli.Main %* if ERRORLEVEL 1 goto error goto end |