Packages

final class Fork extends AnyRef

Represents a command that can be forked.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Fork
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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 the apply or fork methods.

Value Members

  1. 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 to config. If runnerClass is defined for this Fork instance, it is prepended to arguments to define the arguments passed to the forked command.

  2. val commandName: String
  3. 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 the commandName defined for this Fork instance. It is configured according to config. If runnerClass is defined for this Fork instance, it is prepended to arguments to define the arguments passed to the forked command.

  4. val runnerClass: Option[String]