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.
This commit is contained in:
Ben Liblit 2018-01-21 16:16:01 -06:00
parent 22421c6882
commit 50bed1cbe8
1 changed files with 3 additions and 3 deletions

View File

@ -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
}
}