jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimirsitni...@apache.org
Subject [jmeter] branch master updated: Show proper application name and icon when using ./gradlew runGui with macOS
Date Wed, 09 Oct 2019 08:46:09 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


The following commit(s) were added to refs/heads/master by this push:
     new 8944917  Show proper application name and icon when using ./gradlew runGui with macOS
8944917 is described below

commit 8944917bd7e9eca746a42dc7f5ed225f2a3596b5
Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
AuthorDate: Wed Oct 9 11:43:49 2019 +0300

    Show proper application name and icon when using ./gradlew runGui with macOS
---
 src/dist/build.gradle.kts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/dist/build.gradle.kts b/src/dist/build.gradle.kts
index f9cbb99..07a749d 100644
--- a/src/dist/build.gradle.kts
+++ b/src/dist/build.gradle.kts
@@ -503,6 +503,12 @@ val runGui by tasks.registering() {
             classpath("$rootDir/bin/ApacheJMeter.jar")
             jvmArgs("-Xss256k")
             jvmArgs("-XX:MaxMetaspaceSize=256m")
+
+            val osName = System.getProperty("os.name")
+            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")
+            }
         }
     }
 }


Mime
View raw message