mirror of https://github.com/sbt/sbt.git
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:
parent
c350ab6b3c
commit
5eb4bf2a22
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue