aboutsummaryrefslogtreecommitdiff
path: root/project/Build.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-04-28 10:36:00 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-04-28 11:00:40 +0200
commit43f3916e149aa0c17b34d39b39193620415f2664 (patch)
treece12e85ef36e3398b5605f8ba55a44cb5e512fb1 /project/Build.scala
parentf010c62b8dc8baaaa9b87784d8664997bee95fa4 (diff)
downloaddotty-43f3916e149aa0c17b34d39b39193620415f2664.tar.gz
dotty-43f3916e149aa0c17b34d39b39193620415f2664.tar.bz2
dotty-43f3916e149aa0c17b34d39b39193620415f2664.zip
Fix stdin/out for repl launched by SBT
Launching the repl with: `runMain dotty.tools.dotc.repl.Main` is now working correctly
Diffstat (limited to 'project/Build.scala')
-rw-r--r--project/Build.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/project/Build.scala b/project/Build.scala
index f64dd0f33..35482303e 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -64,6 +64,10 @@ object DottyBuild extends Build {
unmanagedSourceDirectories in Compile := Seq((scalaSource in Compile).value),
unmanagedSourceDirectories in Test := Seq((scalaSource in Test).value),
+ // set system in/out for repl
+ connectInput in run := true,
+ outputStrategy := Some(StdoutOutput),
+
// Generate compiler.properties, used by sbt
resourceGenerators in Compile += Def.task {
val file = (resourceManaged in Compile).value / "compiler.properties"