From: wisberg Date: Mon, 2 Jun 2003 05:21:37 +0000 (+0000) Subject: added output snooper to ProcessController for testing client X-Git-Tag: V1_1_0~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=18b5821c73104c05477e47f75e566f1854edaa92;p=aspectj.git added output snooper to ProcessController for testing client --- diff --git a/util/src/org/aspectj/util/LangUtil.java b/util/src/org/aspectj/util/LangUtil.java index 8462da16d..800575b25 100644 --- a/util/src/org/aspectj/util/LangUtil.java +++ b/util/src/org/aspectj/util/LangUtil.java @@ -1094,6 +1094,7 @@ public class LangUtil { private FileUtil.Pipe outStream; private FileUtil.Pipe inStream; private ByteArrayOutputStream errSnoop; + private ByteArrayOutputStream outSnoop; private int result; private Thrown thrown; @@ -1176,6 +1177,13 @@ public class LangUtil { } } + public final void setOutSnoop(ByteArrayOutputStream snoop) { + outSnoop = snoop; + if (null != outStream) { + outStream.setSnoop(outSnoop); + } + } + /** * Start running the process and pipes asynchronously. * @return Thread started or null if unable to start thread