ProcessArgumentBuilder

Mutable builder for process arguments and environment.

This class is open so ExecArgumentsBuilder can inherit from it and add its own arguments.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Command line, including executable as first element.

Link copied to clipboard

Subprocess environment.

Link copied to clipboard

Check if environment was modified at all.

Link copied to clipboard

stderr redirection, defaults to Pipe.

Link copied to clipboard

stdin redirection, defaults to Pipe.

Link copied to clipboard

stdout redirection, defaults to Pipe.

Link copied to clipboard

Subprocess working directory or null to inherit from parent.

Functions

Link copied to clipboard
fun arg(arg: String)

Append one argument to command line.

Link copied to clipboard
fun args(vararg args: String)

Append multiple arguments to command line.

fun args(args: Collection<String>)

Append a collection of arguments to command line.

Link copied to clipboard

Create ProcessArguments from builder.

Link copied to clipboard
fun stderr(file: String, append: Boolean = false)

Write stderr to file.

Link copied to clipboard
fun stdin(file: String)

Read stdin from file.

Link copied to clipboard
fun stdout(file: String, append: Boolean = false)

Write stdout to file.