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

Fix #129 for war files as well.

This commit is contained in:
Cedric Beust 2016-02-15 10:22:09 -08:00
parent 307ceee78f
commit 379ff056f7

View file

@ -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("**"))))
//