jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimirsitni...@apache.org
Subject [jmeter] 01/02: Integrate with macOS system menu when running as ./gradlew runGui under macOS
Date Wed, 09 Oct 2019 08:59:18 GMT
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 <sitnikov.vladimir@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")
             }
         }
     }


Mime
View raw message