Package

sbt

Permalink

package sbt

Visibility
  1. Public
  2. All

Type Members

  1. case class BufferedOutput(logger: Logger) extends OutputStrategy with Product with Serializable

    Permalink

    Logs the forked standard output at the info level and the forked standard error at the error level.

    Logs the forked standard output at the info level and the forked standard error at the error level. The output is buffered until the process completes, at which point the logger flushes it (to the screen, for example).

  2. case class CustomOutput(output: OutputStream) extends OutputStrategy with Product with Serializable

    Permalink

    Configures the forked standard output to be sent to output and the forked standard error to be sent to the standard error of this process.

  3. sealed class Fork extends AnyRef

    Permalink

    Represents a commad that can be forked.

  4. final case class ForkOptions(javaHome: Option[File] = None, outputStrategy: Option[OutputStrategy] = None, bootJars: Seq[File] = Nil, workingDirectory: Option[File] = None, runJVMOptions: Seq[String] = Nil, connectInput: Boolean = false, envVars: Map[String, String] = Map.empty) extends ForkScalaRun with Product with Serializable

    Permalink

    Configures forking.

    Configures forking.

    javaHome

    The Java installation to use. If not defined, the Java home for the current process is used.

    outputStrategy

    Configures the forked standard output and error streams. If not defined, StdoutOutput is used, which maps the forked output to the output of this process and the forked error to the error stream of the forking process.

    bootJars

    The list of jars to put on the forked boot classpath. By default, this is empty.

    workingDirectory

    The directory to use as the working directory for the forked process. By default, this is the working directory of the forking process.

    runJVMOptions

    The options to prepend to all user-specified arguments. By default, this is empty.

    connectInput

    If true, the standard input of the forked process is connected to the standard input of this process. Otherwise, it is connected to an empty input stream. Connecting input streams can be problematic, especially on versions before Java 7.

    envVars

    The environment variables to provide to the forked process. By default, none are provided.

  5. class ForkRun extends ScalaRun

    Permalink
  6. case class LoggedOutput(logger: Logger) extends OutputStrategy with Product with Serializable

    Permalink

    Logs the forked standard output at the info level and the forked standard error at the error level.

  7. sealed abstract class OutputStrategy extends AnyRef

    Permalink

    Configures where the standard output and error streams from a forked process go.

  8. class Run extends ScalaRun

    Permalink
  9. trait ScalaRun extends AnyRef

    Permalink
  10. trait ForkJava extends AnyRef

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.0) Use ForkOptions

  11. trait ForkScala extends ForkJava

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.0) Use ForkOptions

  12. trait ForkScalaRun extends ForkScala

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.0) Use ForkOptions

Value Members

  1. object Fork

    Permalink
  2. object Run

    Permalink

    This module is an interface to starting the scala interpreter or runner.

  3. object SelectMainClass

    Permalink
  4. object StdoutOutput extends OutputStrategy with Product with Serializable

    Permalink

    Configures the forked standard output to go to standard output of this process and for the forked standard error to go to the standard error of this process.

  5. object TrapExit

    Permalink

    Provides an approximation to isolated execution within a single JVM.

    Provides an approximation to isolated execution within a single JVM. System.exit calls are trapped to prevent the JVM from terminating. This is useful for executing user code that may call System.exit, but actually exiting is undesirable.

    Exit is simulated by disposing all top-level windows and interrupting user-started threads. Threads are not stopped and shutdown hooks are not called. It is therefore inappropriate to use this with code that requires shutdown hooks, creates threads that do not terminate, or if concurrent AWT applications are run. This category of code should only be called by forking a new JVM.

Ungrouped