From 61ce1b537cc6f428577c3bcf31187da683570c0e Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 26 Nov 2015 21:03:08 -0800 Subject: [PATCH] Comment. --- src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt b/src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt index 2a31f5f8..5f2b5ad2 100644 --- a/src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/kotlin/BuildFileCompiler.kt @@ -65,6 +65,9 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b return allProjects } + /** + * Make sure all the projects have a unique name. + */ private fun validateProjects(projects: List) { val seen = hashSetOf() projects.forEach { @@ -93,7 +96,7 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b } // Write the modified Build.kt (e.g. maybe profiles were applied) to a temporary file, - // compile it and run it + // compile it, jar it in buildScript.jar and run it val modifiedBuildFile = KFiles.createTempFile(".kt") KFiles.saveFile(modifiedBuildFile, pair.first.buildScriptCode) maybeCompileBuildFile(context, BuildFile(Paths.get(modifiedBuildFile.path), "Modified Build.kt"),