diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-28 00:35:02 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-28 10:09:33 -0400 |
commit | 3232a1557aabd1ef3a59cbea38c883d4abb7ff32 (patch) | |
tree | 09ae92e35fe40b95143b0fb0291aff00f399bbc2 /test/test.scala | |
parent | a3e5f304e99ff47165af6ed20182f06700e15b33 (diff) | |
download | cbt-3232a1557aabd1ef3a59cbea38c883d4abb7ff32.tar.gz cbt-3232a1557aabd1ef3a59cbea38c883d4abb7ff32.tar.bz2 cbt-3232a1557aabd1ef3a59cbea38c883d4abb7ff32.zip |
add support for forking the jvm process when invoking a main class
and add example of using akka-http that doesn’t work without this.
Also add functionality to emulate inheritIO when running via nailgun
process. Only caveat right now: user has to press ENTER to terminate
the input strea.
Diffstat (limited to 'test/test.scala')
-rw-r--r-- | test/test.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.scala b/test/test.scala index f3fb7c5..f942375 100644 --- a/test/test.scala +++ b/test/test.scala @@ -89,7 +89,7 @@ object Main{ args = _args.drop(1), transientCache = new java.util.HashMap() ) - val ( outVar, errVar ) = lib.getOutErr + val ( outVar, errVar, _ ) = lib.getOutErrIn val oldOut = outVar.get val oldErr = errVar.get val out = new ByteArrayOutputStream @@ -258,6 +258,7 @@ object Main{ compile("../plugins/wartremover") compile("../plugins/uber-jar") compile("../plugins/scalafix-compiler-plugin") + compile("../examples/fork-example") compile("../examples/scalafmt-example") compile("../examples/scalariform-example") compile("../examples/scalatest-example") |