JaroslavTulach commented on a change in pull request #2309:
URL: https://github.com/apache/netbeans/pull/2309#discussion_r472656847
##########
File path: java/maven/src/org/netbeans/modules/maven/api/execute/RunUtils.java
##########
@@ -218,4 +219,10 @@ public static boolean
hasTestCompileOnSaveEnabled(RunConfig config) {
return false;
}
+ private static void invokeLaterWithUI(Runnable runnable) {
+ if (GraphicsEnvironment.isHeadless()) {
+ return;
+ }
Review comment:
Yes, the method `invokeLaterWithUI` is used to change cursor on main
`JFrame` of the application. That yields an exception in headless mode. Not
mangling the cursor shape - e.g. skipping the runnable - is exactly what is
needed in headless mode.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists