Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 Output Redirection

open
nobody
5
2010-11-30
2010-11-30
Nickolas Moser
No

It would be nice if the user change the default copyStream (in StreamPiper) from System.out and System.err to be different PrintStreams. I think it allows significant flexibility to control where the output ends up.

I got this working, but it required me to add some additional factory methods to ExpectJ.java and pass the PrintStreams down to the SpawnableHelper class, where I used them for creating the StreamPiper. I will send the files on request.

Discussion

  • Any progress on this ? https://github.com/tgbyte/expectj also has added an option for this, albeit simpler.