From 8e9dd88ef5880fd501fc1cda60b416d1e353dcf0 Mon Sep 17 00:00:00 2001 From: harrah Date: Fri, 25 Nov 2011 12:42:04 -0800 Subject: [PATCH] Updated Forking (markdown) --- Detailed-Topics/Forking.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Detailed-Topics/Forking.md b/Detailed-Topics/Forking.md index 11380af..102846a 100644 --- a/Detailed-Topics/Forking.md +++ b/Detailed-Topics/Forking.md @@ -93,6 +93,14 @@ outputStrategy := Some(BufferedOutput(log: Logger)) As with other settings, this can be configured individually for main or test `run` tasks. -## Direct Usage +# Configuring Input + +By default, the standard input of the sbt process is not forwarded to the forked process. To enable this, configure the `connectInput` setting: + +```scala +connectInput in run := true +``` + +# Direct Usage To fork a new Java process, use the [Fork API]. The methods of interest are `Fork.java`, `Fork.javac`, `Fork.scala`, and `Fork.scalac`. See the [ForkJava] and [ForkScala] classes for the arguments and types.