Skip to content

Commit 6364478

Browse files
author
Holger Brandl
committed
tweaked logging in case of packaging errors (relates to #106)
1 parent 66b8c80 commit 6364478

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/kotlin/kscript/app/AppHelpers.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,9 @@ exec java -jar ${'$'}0 "${'$'}@"
362362

363363
val pckgResult = evalBash("cd ${tmpProjectDir} && gradle simpleCapsule && cp build/libs/${appName}*.jar ${pckgedJar} && chmod +x ${pckgedJar}")
364364

365-
infoMsg("Finished packaging into ${pckgedJar}")
366-
367-
// evalBash("idea ${tmpProjectDir.absolutePath}")
368-
369365
with(pckgResult) {
370-
kscript.app.errorIf(exitCode != 0) { "packaging of '$appName' failed:\n$stderr" }
366+
kscript.app.errorIf(exitCode != 0) { "packaging of '$appName' failed:\n$pckgResult" }
371367
}
372368

373-
// return "idea ${tmpProjectDir.absolutePath}"
369+
infoMsg("Finished packaging into ${pckgedJar}")
374370
}

0 commit comments

Comments
 (0)