mirror of https://github.com/sbt/sbt.git
Use print + flush instead of println
With println, it is possible for lines to get interleaved because another thread may call flush before the println appends a newline.
This commit is contained in:
parent
a94d6dd77c
commit
b0a859acb5
|
|
@ -424,7 +424,7 @@ object Act {
|
|||
def evaluate(kvs: Seq[ScopedKey[_]]): Parser[() => State] = {
|
||||
val preparedPairs = anyKeyValues(structure, kvs)
|
||||
val showConfig = if (action == PrintAction) {
|
||||
Aggregation.ShowConfig(true, true, println, false)
|
||||
Aggregation.ShowConfig(true, true, s => { print(s + "\n"); System.out.flush() }, false)
|
||||
} else {
|
||||
Aggregation.defaultShow(state, showTasks = action == ShowAction)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue