mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -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
|
@ -59,7 +59,7 @@ public class JarUtils {
|
|||
val includedFile = IncludedFile(From(source.path), To(""), listOf(IFileSpec.GlobSpec("**")))
|
||||
addSingleFile(".", includedFile, outputStream, expandJarFiles)
|
||||
} else {
|
||||
if (expandJarFiles and source.name.endsWith(".jar")) {
|
||||
if (expandJarFiles && source.name.endsWith(".jar") && ! source.path.contains("resources")) {
|
||||
log(2, "Writing contents of jar file $source")
|
||||
val stream = JarInputStream(FileInputStream(source))
|
||||
var entry = stream.nextEntry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue