From 50bed1cbe89cbcbd6c7d84c1e97adeccdf153be5 Mon Sep 17 00:00:00 2001 From: Ben Liblit Date: Sun, 21 Jan 2018 16:16:01 -0600 Subject: [PATCH] Compute a library path from the corresponding linker task Previously we were repeating the library path twice, but that's not good for long-term maintenance. --- com.ibm.wala.cast.test/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com.ibm.wala.cast.test/build.gradle b/com.ibm.wala.cast.test/build.gradle index 3da9ce2e5..57641486d 100644 --- a/com.ibm.wala.cast.test/build.gradle +++ b/com.ibm.wala.cast.test/build.gradle @@ -94,8 +94,8 @@ model { } tasks.test { - dependsOn xlator_testSharedLibrary - // TODO: compute path on following line from 'xlator_test' library properties somehow - systemProperty 'java.library.path', "$buildDir/libs/xlator_test/shared" + def lib = linkXlator_testSharedLibrary + dependsOn lib + systemProperty 'java.library.path', lib.destinationDir } }