From 379ff056f76ef2bbf50ca3bcddae17e4d0b70c8a Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 15 Feb 2016 10:22:09 -0800 Subject: [PATCH] Fix #129 for war files as well. --- .../com/beust/kobalt/plugin/packaging/WarGenerator.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/com/beust/kobalt/plugin/packaging/WarGenerator.kt b/src/main/kotlin/com/beust/kobalt/plugin/packaging/WarGenerator.kt index 57577e67..3bffc9a4 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/packaging/WarGenerator.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/packaging/WarGenerator.kt @@ -55,6 +55,13 @@ class WarGenerator @Inject constructor(val dependencyManager: DependencyManager) KFiles.copy(Paths.get(it.absolutePath), Paths.get(fullDir, it.name)) } + // + // The resources + // + context.variant.resourceDirectories(project).forEach { + result.add(IncludedFile(From(it.path), To(""), listOf(IFileSpec.GlobSpec("**")))) + } + result.add(IncludedFile(From(fullDir), To(WEB_INF), listOf(IFileSpec.GlobSpec("**")))) //