1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Move the BUILD SUCCESSFUL message to the build listener.

This commit is contained in:
Cedric Beust 2016-08-03 19:15:18 -08:00
parent 635cc9cd3c
commit 1969252d16
2 changed files with 27 additions and 11 deletions

View file

@ -114,18 +114,14 @@ private class Main @Inject constructor(
var result = 0
val latestVersionFuture = github.latestKobaltVersion
val timing = benchmarkSeconds {
try {
result = runWithArgs(jc, args, argv, pluginClassLoader)
} catch(ex: Throwable) {
error("", ex.cause ?: ex)
result = 1
}
try {
result = runWithArgs(jc, args, argv, pluginClassLoader)
} catch(ex: Throwable) {
error("", ex.cause ?: ex)
result = 1
}
if (!args.update) {
log(1, if (result != 0) "BUILD FAILED: $result" else "BUILD SUCCESSFUL (${timing.first} seconds)")
updateKobalt.checkForNewVersion(latestVersionFuture)
}
return result