SystemStreams

mill.api.daemon.SystemStreams
See theSystemStreams companion class
object SystemStreams

Attributes

Companion
class
Source
SystemStreams.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def isOriginal(): Boolean

Used to check whether the system streams are all "original", i,e. they have not been overridden. Used for code paths that need to work differently if they have been overridden (e.g. handling subprocess stdout/stderr)

Used to check whether the system streams are all "original", i,e. they have not been overridden. Used for code paths that need to work differently if they have been overridden (e.g. handling subprocess stdout/stderr)

Assumes that the application only uses withStreams to override stdout/stderr/stdin.

Attributes

Source
SystemStreams.scala
def originalErr: PrintStream

The original non-override stderr, used for debugging purposes e.g. if you want to print stuff while the system streams override are messed up

The original non-override stderr, used for debugging purposes e.g. if you want to print stuff while the system streams override are messed up

Attributes

Source
SystemStreams.scala

Concrete fields

val current: DynamicVariable[SystemStreams]

Attributes

Source
SystemStreams.scala

The original system streams of this process, before any redirection.

The original system streams of this process, before any redirection.

NOTE: you should not use this! They do not get captured properly by Mill's stdout/err redirection, and thus only get picked up from the Mill server log files asynchronously. That means that the logs may appear out of order, jumbling your logs and screwing up your terminal

Attributes

Source
SystemStreams.scala