aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-09-28 10:44:38 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2015-09-28 14:26:06 +0200
commitd7c0de5c2e53805fdf08b0bb5cf91c801e348a2a (patch)
tree2459566c1e3013ff1f6861cc21cd4e8ac0efb035
parentff594fdaa23f081d4cc0709e21cf1ff02824e5cd (diff)
downloadsonar-scanner-cli-d7c0de5c2e53805fdf08b0bb5cf91c801e348a2a.tar.gz
sonar-scanner-cli-d7c0de5c2e53805fdf08b0bb5cf91c801e348a2a.zip
SONARUNNER-120 Focus is lost on MacOS when executing sonar-runner
-rwxr-xr-xsonar-runner-cli/src/main/assembly/bin/sonar-runner1
-rw-r--r--sonar-runner-cli/src/main/assembly/bin/sonar-runner.bat2
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