From 23360b6077dc4c979fc22bd2229d700f85a959fb Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 14 Feb 2017 10:21:23 -0800 Subject: [PATCH] Fix profiles. --- src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt index 0115de43..8b17e1bc 100644 --- a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt @@ -147,7 +147,7 @@ class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val buildFil classpath(files.kobaltJar) classpath(pluginUrls.map { it.file }) classpath(buildFileClasspath) - sourceFiles(listOf(buildFile.realPath.toFile().absolutePath)) + sourceFiles(listOf(buildFile.path.toFile().absolutePath)) output = buildScriptJarFile }.compile(context = context)