diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-09-28 10:44:38 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-09-28 14:26:06 +0200 |
commit | d7c0de5c2e53805fdf08b0bb5cf91c801e348a2a (patch) | |
tree | 2459566c1e3013ff1f6861cc21cd4e8ac0efb035 | |
parent | ff594fdaa23f081d4cc0709e21cf1ff02824e5cd (diff) | |
download | sonar-scanner-cli-d7c0de5c2e53805fdf08b0bb5cf91c801e348a2a.tar.gz sonar-scanner-cli-d7c0de5c2e53805fdf08b0bb5cf91c801e348a2a.zip |
SONARUNNER-120 Focus is lost on MacOS when executing sonar-runner
-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 |