From 2d80778bc74f7bdae7546eecdec3f8d1d70f8ba7 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 8 Dec 2015 15:46:19 -0800 Subject: [PATCH] =?UTF-8?q?Remove=20nonexistent=20folders.=E2=80=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt b/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt index 369f18fc..70880215 100644 --- a/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/internal/JvmCompilerPlugin.kt @@ -198,6 +198,8 @@ abstract class JvmCompilerPlugin @Inject constructor( } else { context.pluginInfo.sourceDirectoriesInterceptors.fold(initialSourceDirectories.toList(), { sd, interceptor -> interceptor.intercept(project, context, sd) }) + }.filter { + it.exists() } // Now that we have the final list of source dirs, find source files in them