mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Logs.
This commit is contained in:
parent
b9924d3b69
commit
f695fdf38c
1 changed files with 3 additions and 3 deletions
|
@ -47,15 +47,15 @@ public class JarUtils {
|
||||||
throw AssertionError("File should exist: $localFile")
|
throw AssertionError("File should exist: $localFile")
|
||||||
}
|
}
|
||||||
|
|
||||||
if (localFile.isDirectory) {
|
if (foundFile.isDirectory) {
|
||||||
log(2, "Writing contents of directory $foundFile")
|
log(2, " Writing contents of directory $foundFile")
|
||||||
|
|
||||||
// Directory
|
// Directory
|
||||||
val includedFile = IncludedFile(From(""), To(""), listOf(IFileSpec.GlobSpec("**")))
|
val includedFile = IncludedFile(From(""), To(""), listOf(IFileSpec.GlobSpec("**")))
|
||||||
addSingleFile(localFile.path, includedFile, outputStream, expandJarFiles)
|
addSingleFile(localFile.path, includedFile, outputStream, expandJarFiles)
|
||||||
} else {
|
} else {
|
||||||
if (file.expandJarFiles && foundFile.name.endsWith(".jar") && ! file.from.contains("resources")) {
|
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))
|
val stream = JarInputStream(FileInputStream(localFile))
|
||||||
var entry = stream.nextEntry
|
var entry = stream.nextEntry
|
||||||
while (entry != null) {
|
while (entry != null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue