ProcessArguments

class ProcessArguments(arguments: Iterable<String>, val workingDirectory: String? = null, environment: Map<String, String>? = null, val stdin: Redirect = Redirect.Pipe, val stdout: Redirect = Redirect.Pipe, val stderr: Redirect = Redirect.Pipe)

Immutable process launch arguments.

Parameters

arguments

command line, including executable as first element

workingDirectory

subprocess working directory or null to inherit from parent

environment

subprocess environment or null to inherit from parent. NOTE: Setting this will override the parent environment

stdin

stdin redirection, defaults to Pipe

stdout

stdout redirection, defaults to Pipe

stderr

stderr redirection, defaults to Pipe

Constructors

Link copied to clipboard
constructor(vararg arguments: String, workingDirectory: String? = null, environment: Map<String, String>? = null, stdin: Redirect = Redirect.Pipe, stdout: Redirect = Redirect.Pipe, stderr: Redirect = Redirect.Pipe)

Create with vararg arguments list.

constructor(arguments: Iterable<String>, workingDirectory: String? = null, environment: Map<String, String>? = null, stdin: Redirect = Redirect.Pipe, stdout: Redirect = Redirect.Pipe, stderr: Redirect = Redirect.Pipe)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard