1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2016-07-19 01:00:49 -08:00
parent b5c81c4e8d
commit 868abad621

View file

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