You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2019/10/09 08:59:18 UTC

[jmeter] 01/02: Integrate with macOS system menu when running as ./gradlew runGui under macOS

This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit cef8105348e9b9e447236441478261d49ff9797b
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Wed Oct 9 11:58:22 2019 +0300

    Integrate with macOS system menu when running as ./gradlew runGui under macOS
---
 src/dist/build.gradle.kts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/dist/build.gradle.kts b/src/dist/build.gradle.kts
index 07a749d..7242dc2 100644
--- a/src/dist/build.gradle.kts
+++ b/src/dist/build.gradle.kts
@@ -508,6 +508,8 @@ val runGui by tasks.registering() {
             if (osName.contains(Regex("mac os x|darwin|osx", RegexOption.IGNORE_CASE))) {
                 jvmArgs("-Xdock:name=JMeter")
                 jvmArgs("-Xdock:icon=$rootDir/xdocs/images/jmeter_square.png")
+                jvmArgs("-Dapple.laf.useScreenMenuBar=true")
+                jvmArgs("-Dapple.eawt.quitStrategy=CLOSE_ALL_WINDOWS")
             }
         }
     }