From e0dc269a89a2908032db199421ccef92d57cb2df Mon Sep 17 00:00:00 2001 From: Dmitry Zhuravlev Date: Mon, 6 Jun 2016 17:10:37 +0300 Subject: [PATCH] * #232 This fix will allow to debug Build.kt files in Kobalt projects --- 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 58ee7438..9beef9c8 100644 --- a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt @@ -124,7 +124,7 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b val result = kotlinCompilePrivate { classpath(files.kobaltJar) classpath(pluginUrls.map { it.file }) - sourceFiles(listOf(buildFile.path.toFile().absolutePath)) + sourceFiles(listOf(buildFile.realPath.toFile().absolutePath)) output = buildScriptJarFile }.compile(context = context)