From: wisberg Date: Thu, 12 May 2005 11:50:13 +0000 (+0000) Subject: snooping out stream on request X-Git-Tag: PRE_ANDY~322 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03ff536b6cbc30935dc0765c9555f6664092ed22;p=aspectj.git snooping out stream on request --- diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java index 9d3103011..7e88949ae 100644 --- a/util/src/org/aspectj/util/LangUtil.java +++ b/util/src/org/aspectj/util/LangUtil.java @@ -1271,6 +1271,9 @@ public class LangUtil { errStream.setSnoop(errSnoop); } outStream = new FileUtil.Pipe(process.getInputStream(), System.out); + if (null != outSnoop) { + outStream.setSnoop(outSnoop); + } inStream = new FileUtil.Pipe(System.in, process.getOutputStream()); // start 4 threads, process & pipes for in, err, out Runnable processRunner = new Runnable() {