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

Handle the situation where no tasks ran.

This commit is contained in:
Cedric Beust 2016-08-03 20:03:54 -08:00
parent d7c8eec6a1
commit 91f21c4edb

View file

@ -76,6 +76,7 @@ class BuildListeners : IBuildListener, IBuildReportContributor {
fun col3(s: String) = String.format(" %1\$-8s", s) fun col3(s: String) = String.format(" %1\$-8s", s)
// Only print the build report if there is more than one project and at least one of them failed // Only print the build report if there is more than one project and at least one of them failed
if (timings.any()) {
// if (timings.size > 1 && hasFailures) { // if (timings.size > 1 && hasFailures) {
val line = listOf(col1("Project"), col2("Build status"), col3("Time")) val line = listOf(col1("Project"), col2("Build status"), col3("Time"))
.joinToString(AsciiArt.verticalBar) .joinToString(AsciiArt.verticalBar)
@ -89,6 +90,7 @@ class BuildListeners : IBuildListener, IBuildReportContributor {
} }
log(1, " " + AsciiArt.lowerBox(line.length)) log(1, " " + AsciiArt.lowerBox(line.length))
// } // }
}
// BUILD SUCCESSFUL / FAILED message // BUILD SUCCESSFUL / FAILED message
val message = StringBuilder(if (args.parallel) "PARALLEL " else "") val message = StringBuilder(if (args.parallel) "PARALLEL " else "")