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 <[email protected]>
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")
+ }
}
}
}