ExecArgumentsBuilder

Builder for the exec method.

Inherits from ProcessArgumentBuilder to define launch settings.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Command line, including executable as first element.

Link copied to clipboard

Set to true to throw a ProcessExitException if the process doesn't terminate normally.

Link copied to clipboard

Subprocess environment.

Link copied to clipboard

stdin pipe input. Ignored if stdin isn't a pipe.

Link copied to clipboard

Check if environment was modified at all.

Link copied to clipboard

If timeout triggers, an optional additional wait time before the child process is killed.

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

Timeout for the child process. Set to null to run without timeout.

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
inline fun input(builder: StringBuilder.() -> Unit)

Fill input using a string 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.