mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Handle resources in the packaging task.
This commit is contained in:
parent
d45054b123
commit
ea9f3dfdc4
2 changed files with 6 additions and 1 deletions
|
@ -39,6 +39,11 @@ class JarGenerator @Inject constructor(val dependencyManager: DependencyManager)
|
|||
fileSpecs.add(IFileSpec.FileSpec(it.path.toString().substring(prefixPath.toString().length + 1)))
|
||||
}
|
||||
result.add(IncludedFile(From(prefixPath.toString() + "/"), To(""), fileSpecs))
|
||||
|
||||
// Resources, if applicable
|
||||
project.sourceDirectories.filter { it.contains("resources") }.forEach {
|
||||
result.add(IncludedFile(From(it), To(""), listOf(IFileSpec.GlobSpec("**"))))
|
||||
}
|
||||
} else {
|
||||
//
|
||||
// The user specified an include, just use it verbatim
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue