Skip to content

Commit 68a8a85

Browse files
committed
Use correct path separators and delimiters for Windows
1 parent 84cbf26 commit 68a8a85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,13 @@ task generateJNI(type: Exec) {
8383
executable = "../generate_tiledb_jni"
8484
}
8585

86+
import org.apache.tools.ant.taskdefs.condition.Os
8687
test {
87-
systemProperty "java.library.path", "$buildDir/install/lib:$buildDir/install/lib64:$buildDir/install/bin:$buildDir/tiledb_jni:$buildDir/tiledb_jni/Release"
88+
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
89+
systemProperty "java.library.path", "$buildDir\\install\\bin;$buildDir\\tiledb_jni\\Release"
90+
} else {
91+
systemProperty "java.library.path", "$buildDir/install/lib:$buildDir/install/lib64:$buildDir/tiledb_jni"
92+
}
8893
testLogging {
8994
showStandardStreams = true
9095
}

0 commit comments

Comments
 (0)