1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Fix test for Windows.

This commit is contained in:
Cedric Beust 2016-06-07 23:40:00 -07:00
parent 5fcffb0241
commit 99ec586877

View file

@ -16,8 +16,9 @@ import javax.inject.Inject
* Test ITestJvmFlagContributor and ITestJvmFlagInterceptor. * Test ITestJvmFlagContributor and ITestJvmFlagInterceptor.
*/ */
class DependencyTest @Inject constructor() { class DependencyTest @Inject constructor() {
private val A_JAR = "/tmp/a.jar" private fun isWindows() = System.getProperty("os.name").toLowerCase().contains("ndows")
private val B_JAR = "/tmp/b.jar" private val A_JAR = if (isWindows()) "c:\\tmp\\a.jar" else "/tmp/a.jar"
private val B_JAR = if (isWindows()) "c:\\tmp\\b.jar" else "/tmp/b.jar"
private val project : Project get() = project { name = "dummy" } private val project : Project get() = project { name = "dummy" }
private val classpath = listOf(FileDependency(A_JAR)) private val classpath = listOf(FileDependency(A_JAR))