TaskStreams

sbt.std.TaskStreams
sealed trait TaskStreams[Key]

Represents a set of streams associated with a context. In sbt, this is a named set of streams for a particular scoped key. For example, logging for test:compile is by default sent to the "out" stream in the test:compile context.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ManagedStreams[Key]

Members list

Value members

Abstract methods

def binary(sid: String): BufferedOutputStream

Provides an output stream for writing to the stream with the given ID.

Provides an output stream for writing to the stream with the given ID.

Attributes

def cacheDirectory: File

A cache directory that is unique to the context of this streams instance.

A cache directory that is unique to the context of this streams instance.

Attributes

def cacheStoreFactory: CacheStoreFactory
def getInput(key: Key, sid: String): Input
def getOutput(sid: String): Output
def key: Key
def log(sid: String): ManagedLogger

Creates a Logger that logs to stream with ID sid.

Creates a Logger that logs to stream with ID sid.

Attributes

def readBinary(a: Key, sid: String): BufferedInputStream

Provides an output stream to read from the stream sid for key. It is the caller's responsibility to coordinate writing to the stream. That is, no synchronization or ordering is provided and so this method should only be called when writing is complete.

Provides an output stream to read from the stream sid for key. It is the caller's responsibility to coordinate writing to the stream. That is, no synchronization or ordering is provided and so this method should only be called when writing is complete.

Attributes

def readText(key: Key, sid: String): BufferedReader

Provides a reader to read text from the stream sid for key. It is the caller's responsibility to coordinate writing to the stream. That is, no synchronization or ordering is provided and so this method should only be called when writing is complete.

Provides a reader to read text from the stream sid for key. It is the caller's responsibility to coordinate writing to the stream. That is, no synchronization or ordering is provided and so this method should only be called when writing is complete.

Attributes

def text(sid: String): PrintWriter

Provides a writer for writing text to the stream with the given ID.

Provides a writer for writing text to the stream with the given ID.

Attributes

Concrete methods

def default: String

The default stream ID, used when an ID is not provided.

The default stream ID, used when an ID is not provided.

Attributes

def errorID: String
def outID: String
final def readBinary(a: Key, sid: Option[String]): BufferedInputStream
final def readText(a: Key, sid: Option[String]): BufferedReader

Concrete fields

final lazy val log: ManagedLogger

Obtains the default logger.

Obtains the default logger.

Attributes