From 39b0c159b6853cd74d5ef79dac0409853da6f778 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 1 Jul 2020 15:37:35 +0100 Subject: [PATCH] JAL-3609 Allow pass-through of setHiDPIScale property to tests via (e.g.) gradle test -Ptest_HiDPIScale=2 --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 24f1fd9..2c7f138 100644 --- a/build.gradle +++ b/build.gradle @@ -963,6 +963,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 -- 1.7.10.2