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

Fix test path for Windows.

This commit is contained in:
Cedric Beust 2017-03-18 23:17:48 -07:00
parent 6a50e01ebc
commit 3bdc83b20e

View file

@ -27,8 +27,7 @@ open class BaseTest(val compilerFactory: BuildFileCompiler.IFactory? = null) {
*/
fun compileSingleProject(projectText: String, args: Args = Args()) : Project {
val projectName = "p" + Math.abs(Random().nextInt())
val projectDirectory = Files.createTempDirectory("kobaltTest").toFile().path
val projectDirectory = Files.createTempDirectory("kobaltTest").toFile().path.replace("\\", "/")
val buildFileText= """
import com.beust.kobalt.*
import com.beust.kobalt.api.*