1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Expose all the parsed files so we can get the pluginUrls.

This commit is contained in:
Cedric Beust 2015-12-13 07:25:51 +04:00
parent d122f5c71b
commit d71cdf7010

View file

@ -55,10 +55,13 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b
return allProjects
}
val parsedBuildFiles = arrayListOf<ParsedBuildFile>()
private fun findProjects(context: KobaltContext): List<Project> {
val result = arrayListOf<Project>()
buildFiles.forEach { buildFile ->
val parsedBuildFile = parseBuildFile(context, buildFile)
parsedBuildFiles.add(parsedBuildFile)
val pluginUrls = parsedBuildFile.pluginUrls
val buildScriptJarFile = File(KFiles.findBuildScriptLocation(buildFile, SCRIPT_JAR))