final class Fork extends AnyRef
Represents a command that can be forked.
- Alphabetic
- By Inheritance
- Fork
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Fork(commandName: String, runnerClass: Option[String])
- commandName
The java-like binary to fork. This is expected to exist in bin/ of the Java home directory.
- runnerClass
If Some, this will be prepended to the
arguments
passed to theapply
orfork
methods.
Value Members
-
def
apply(config: ForkOptions, arguments: Seq[String]): Int
Forks the configured process, waits for it to complete, and returns the exit code.
Forks the configured process, waits for it to complete, and returns the exit code. The command executed is the
commandName
defined for this Fork instance. It is configured according toconfig
. IfrunnerClass
is defined for this Fork instance, it is prepended toarguments
to define the arguments passed to the forked command. - val commandName: String
-
def
fork(config: ForkOptions, arguments: Seq[String]): Process
Forks the configured process and returns a
Process
that can be used to wait for completion or to terminate the forked process.Forks the configured process and returns a
Process
that can be used to wait for completion or to terminate the forked process. The command executed is thecommandName
defined for this Fork instance. It is configured according toconfig
. IfrunnerClass
is defined for this Fork instance, it is prepended toarguments
to define the arguments passed to the forked command. - val runnerClass: Option[String]