mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Display task timings in --log 2.
This commit is contained in:
parent
82d6faa54f
commit
0e90561c8f
2 changed files with 27 additions and 16 deletions
|
@ -94,7 +94,7 @@ private class Main @Inject constructor(
|
|||
|
||||
var result = 0
|
||||
val latestVersionFuture = github.latestKobaltVersion
|
||||
val seconds = benchmark {
|
||||
val seconds = benchmarkSeconds {
|
||||
try {
|
||||
result = runWithArgs(jc, args, argv)
|
||||
} catch(ex: KobaltException) {
|
||||
|
@ -195,10 +195,12 @@ private class Main @Inject constructor(
|
|||
//
|
||||
// Launch the build
|
||||
//
|
||||
val thisResult = taskManager.runTargets(args.targets, allProjects)
|
||||
val runTargetResult = taskManager.runTargets(args.targets, allProjects)
|
||||
if (result == 0) {
|
||||
result = thisResult
|
||||
result = runTargetResult.exitCode
|
||||
}
|
||||
|
||||
log(2, "Timings:\n " + runTargetResult.messages.joinToString("\n "))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue