X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;h=2c7f1389e00baacb75cdba452b755d11a4854c82;hb=db9f5c50215282a01e60cc37e4010f2a0276d5fb;hp=7d0a1f9e373d103eb9cd85ecff278a1694e7160c;hpb=c8694dc0f354eea1f8fb74428d3cf20270eb73c2;p=jalview.git diff --git a/build.gradle b/build.gradle index 7d0a1f9..2c7f138 100644 --- a/build.gradle +++ b/build.gradle @@ -84,7 +84,7 @@ ext { // Expect jalview.version and target release branch in jalview.release def releaseProps = new Properties(); def releasePropFile = findProperty("JALVIEW_RELEASE_FILE"); - def defaultReleasePropFile = "${jalviewDir}/RELEASE"; + def defaultReleasePropFile = "${jalviewDirAbsolutePath}/RELEASE"; try { (new File(releasePropFile!=null ? releasePropFile : defaultReleasePropFile)).withInputStream { releaseProps.load(it) @@ -958,6 +958,16 @@ test { workingDir = jalviewDir //systemProperties 'clover.jar' System.properties.clover.jar + def testLaf = project.findProperty("test_laf") + if (testLaf != null) { + 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