diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-04-28 10:36:00 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-04-28 11:00:40 +0200 |
commit | 43f3916e149aa0c17b34d39b39193620415f2664 (patch) | |
tree | ce12e85ef36e3398b5605f8ba55a44cb5e512fb1 /project | |
parent | f010c62b8dc8baaaa9b87784d8664997bee95fa4 (diff) | |
download | dotty-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')
-rw-r--r-- | project/Build.scala | 4 |
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" |