From: Ben Soares Date: Wed, 1 Jul 2020 14:37:35 +0000 (+0100) Subject: JAL-3609 Allow pass-through of setHiDPIScale property to tests via (e.g.) gradle... X-Git-Tag: Develop-2_11_2_0-d20201215~15^2~39 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=05639f0413fa38bd1725ccb5468e722e690a191b;p=jalview.git JAL-3609 Allow pass-through of setHiDPIScale property to tests via (e.g.) gradle test -Ptest_HiDPIScale=2 --- diff --git a/build.gradle b/build.gradle index c3e89e5..d7382cb 100644 --- a/build.gradle +++ b/build.gradle @@ -1284,6 +1284,11 @@ test { println("Setting Test LaF to '${testLaf}'") systemProperty "laf", testLaf } + def testHiDPIScale = project.findProperty("test_HiDPIScale") + if (testHiDPIScale != null) { + println("Setting Test HiDPI Scale to '${testHiDPIScale}'") + systemProperty "sun.java2d.uiScale", testHiDPIScale + } sourceCompatibility = compile_source_compatibility targetCompatibility = compile_target_compatibility jvmArgs += additional_compiler_args