mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Comment.
This commit is contained in:
parent
0118e71b4f
commit
61ce1b537c
1 changed files with 4 additions and 1 deletions
|
@ -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<Project>) {
|
||||
val seen = hashSetOf<String>()
|
||||
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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue