From f695fdf38cef2ed2b1ee92376760e0020cbdbe85 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 6 Jun 2016 01:47:40 -0800 Subject: [PATCH] Logs. --- .../src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt index fedac00f..e0816e40 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/JarUtils.kt @@ -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) {