From 1b27baf05f38ba17c427629d8081940d0239f2f8 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 5 Nov 2015 17:35:22 -0800 Subject: [PATCH] Add to the projects. --- src/main/kotlin/com/beust/kobalt/Main.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/Main.kt b/src/main/kotlin/com/beust/kobalt/Main.kt index 2f8aa5ea..1737a720 100644 --- a/src/main/kotlin/com/beust/kobalt/Main.kt +++ b/src/main/kotlin/com/beust/kobalt/Main.kt @@ -133,7 +133,8 @@ private class Main @Inject constructor( } else { var allProjects = arrayListOf() try { - allProjects = buildFileCompilerFactory.create(listOf(buildFile), pluginInfo).compileBuildFiles(args) + allProjects.addAll(buildFileCompilerFactory.create(listOf(buildFile), pluginInfo) + .compileBuildFiles(args)) } catch(ex: KobaltException) { throw ex } catch(ex: Throwable) {