Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-4212

Prevent gradle test on macOS continuously grabbing focus

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.11.2.6, 2.11.2.7
    • Fix Version/s: 2.11.3.0
    • Component/s: Dev and Dep, gradle
    • Labels:
      None

      Description

      When gradle runs tests on macOS, it is continuously launching new JVMs during the tests. These java invocations create a new Java icon on the Dock, and when they launch they grab window/mouse focus, making it difficult to focus on another task.

      Setting system property
      apple.awt.UIElement=true
      at JVM launch prevents the icon from appearing, and if the focus is elsewhere it doesn't continuously get shifted.

      This is similar to java.awt.headless=true but that property also does other things in Jalview.

        Attachments

          Activity

            People

            Assignee:
            soares Ben Soares
            Reporter:
            soares Ben Soares
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: