Update installer to connect standard input to forked sbt

git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@854 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
dmharrah 2009-07-08 00:06:43 +00:00
parent c350ab6b3c
commit 5eb4bf2a22
1 changed files with 1 additions and 4 deletions

View File

@ -86,10 +86,7 @@ object Main
{
val command = "java" :: "-cp" :: loader.getAbsolutePath :: filterEmpty(install.options) ::: "sbt.boot.Boot" :: filterEmpty(install.actions)
val builder = new java.lang.ProcessBuilder(command.toArray : _*)
builder.directory(project)
//import BasicIO.{processFully, transferFully}
//val standardIO = new ProcessIO(transferFully(System.in, _, 0), processFully(System.out.println), processFully(System.err.println))
val exitCode = ( Process(builder) ! )//( Process(builder) run standardIO).exitValue()
val exitCode = (Process(builder) !<)
if(exitCode == 0)
None
else