Gradle, execWithProgress: report description as first progress

This commit is contained in:
Sergey Rostov
2019-07-07 17:09:02 +03:00
parent 638554ba1c
commit 5e6c76a6e7
@@ -25,6 +25,7 @@ internal fun Project.execWithProgress(description: String, readStdErr: Boolean =
val exec = services.get(ExecActionFactory::class.java).newExecAction()
body(exec)
return project.operation(description) {
progress(description)
exec.standardOutput = PipedOutputStream(stdInPipe)
val outputReaderThread = thread(name = "output reader for [$description]") {
stdInPipe.reader().use { reader ->