CmdProcessBuilder

de.halcony.processes.cmd.CmdProcessBuilder
class CmdProcessBuilder(cmd: String*)

CmdProcessBuilder used to create a CmdProcess

Value parameters

cmd

the cmd line to be run

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def collectStdErr(collector: File): CmdProcessBuilder

the spawned process redirects stderr of the process into a file

the spawned process redirects stderr of the process into a file

Value parameters

collector

the file to write stderr into

Attributes

Returns

the current builder

the spawned process collects stderr as a string (default behavior)

the spawned process collects stderr as a string (default behavior)

Attributes

Returns

the current builder

def collectStdErr(collector: StringBuilder): CmdProcessBuilder

the spawned process collects stderr in the provided collector

the spawned process collects stderr in the provided collector

Attributes

Returns

the current builder

def collectStdOut(collector: File): CmdProcessBuilder

redirects stdout of the process into a file

redirects stdout of the process into a file

Value parameters

collector

the file to write the stdout into

Attributes

Returns

the current builder

the spawned process collects stdout as a string (default behavior)

the spawned process collects stdout as a string (default behavior)

Attributes

Returns

the current builder

def collectStdOut(collector: StringBuilder): CmdProcessBuilder

the spawned process collects stdout in the provided collector

the spawned process collects stdout in the provided collector

Value parameters

collector

the collector to write stdout into

Attributes

Returns

the current builder

def directory(folder: File): CmdProcessBuilder

sets the working directory of the spawned cmd process

sets the working directory of the spawned cmd process

Value parameters

folder

the working directory

Attributes

Returns

the current builder

the spawned process discards all output to stderr

the spawned process discards all output to stderr

Attributes

Returns

the current builder

the spawned process discards all output to stdout

the spawned process discards all output to stdout

Attributes

Returns

the current builder

def setLogLevel(level: LogLevel): CmdProcessBuilder

set the log level of the spawned process (default: ERROR)

set the log level of the spawned process (default: ERROR)

Value parameters

level

the log level

Attributes

Returns

the current builder

def start(): CmdProcess

start the build process

start the build process

Attributes

Returns

the now running processes