From e468d1cb4db5c12f9f813496c135544bbc94ea6e Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Thu, 4 May 2017 00:12:16 -0700 Subject: [PATCH] Removed sources directory from apt generated directory path. --- src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt b/src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt index 32ee30da..4177859e 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt @@ -243,9 +243,9 @@ class AptPlugin @Inject constructor(val dependencyManager: DependencyManager, va fun addFlags(outputDir: String) { aptDependencies[project.name]?.let { result.add("-s") - generatedSources(project, context, outputDir).let { generatedSource -> - File(generatedSource).mkdirs() - result.add(generatedSource) + generatedDir(project, outputDir).let { generatedSource -> + generatedSource.mkdirs() + result.add(generatedSource.path) } } }