1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2016-06-06 01:47:40 -08:00
parent b9924d3b69
commit f695fdf38c

View file

@ -47,15 +47,15 @@ public class JarUtils {
throw AssertionError("File should exist: $localFile")
}
if (localFile.isDirectory) {
log(2, "Writing contents of directory $foundFile")
if (foundFile.isDirectory) {
log(2, " Writing contents of directory $foundFile")
// Directory
val includedFile = IncludedFile(From(""), To(""), listOf(IFileSpec.GlobSpec("**")))
addSingleFile(localFile.path, includedFile, outputStream, expandJarFiles)
} else {
if (file.expandJarFiles && foundFile.name.endsWith(".jar") && ! file.from.contains("resources")) {
log(2, "Writing contents of jar file $foundFile")
log(2, " Writing contents of jar file $foundFile")
val stream = JarInputStream(FileInputStream(localFile))
var entry = stream.nextEntry
while (entry != null) {