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:
parent
635cc9cd3c
commit
1969252d16
2 changed files with 27 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue