mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 07:57:12 -07:00
Fix test for Windows.
This commit is contained in:
parent
5fcffb0241
commit
99ec586877
1 changed files with 3 additions and 2 deletions
|
@ -16,8 +16,9 @@ import javax.inject.Inject
|
|||
* Test ITestJvmFlagContributor and ITestJvmFlagInterceptor.
|
||||
*/
|
||||
class DependencyTest @Inject constructor() {
|
||||
private val A_JAR = "/tmp/a.jar"
|
||||
private val B_JAR = "/tmp/b.jar"
|
||||
private fun isWindows() = System.getProperty("os.name").toLowerCase().contains("ndows")
|
||||
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 classpath = listOf(FileDependency(A_JAR))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue