Clojure

Prevent test app from appearing in Mac OS X dock

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: Release 1.6
  • Fix Version/s: Release 1.6
  • Component/s: None
  • Labels:
    None
  • Environment:
    Mac OS X
  • Patch:
    Code
  • Approval:
    Ok

Description

During a local ant build of Clojure (tested with master after release of 1.6.0-beta1), the script/run_test.clj is executed. As a side-effect on the Mac, the Java coffee cup app icon is placed in the Dock, and the test app becomes the active application on the desktop. This is slightly annoying.

Even with this property set, activation of awt causes focus to switch temporarily then switch back (at least on Mac).

Solution: Set the following properties during the build:

java.awt.headless=true

Patch: clj-1353-v4.patch

  1. CLJ-1353-no-mac-dock.patch
    16/Feb/14 1:34 PM
    0.7 kB
    Steve Miner
  2. CLJ-1353-v2.patch
    17/Feb/14 11:21 AM
    1 kB
    Andy Fingerhut
  3. clj-1353-v3.patch
    18/Feb/14 1:36 PM
    1 kB
    Alex Miller
  4. clj-1353-v4.patch
    25/Feb/14 11:33 AM
    1 kB
    Alex Miller

Activity

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: