mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Fix test path for Windows.
This commit is contained in:
parent
6a50e01ebc
commit
3bdc83b20e
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ open class BaseTest(val compilerFactory: BuildFileCompiler.IFactory? = null) {
|
||||||
*/
|
*/
|
||||||
fun compileSingleProject(projectText: String, args: Args = Args()) : Project {
|
fun compileSingleProject(projectText: String, args: Args = Args()) : Project {
|
||||||
val projectName = "p" + Math.abs(Random().nextInt())
|
val projectName = "p" + Math.abs(Random().nextInt())
|
||||||
val projectDirectory = Files.createTempDirectory("kobaltTest").toFile().path
|
val projectDirectory = Files.createTempDirectory("kobaltTest").toFile().path.replace("\\", "/")
|
||||||
|
|
||||||
val buildFileText= """
|
val buildFileText= """
|
||||||
import com.beust.kobalt.*
|
import com.beust.kobalt.*
|
||||||
import com.beust.kobalt.api.*
|
import com.beust.kobalt.api.*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue