aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-06-02 05:21:37 +0000
committerwisberg <wisberg>2003-06-02 05:21:37 +0000
commit18b5821c73104c05477e47f75e566f1854edaa92 (patch)
treee773849270bcdf9249859cb49c609b67dacce991 /util
parentb6cdbc92699f3226cb8488ada7f347f6972d80b5 (diff)
downloadaspectj-18b5821c73104c05477e47f75e566f1854edaa92.tar.gz
aspectj-18b5821c73104c05477e47f75e566f1854edaa92.zip
added output snooper to ProcessController for testing client
Diffstat (limited to 'util')
-rw-r--r--util/src/org/aspectj/util/LangUtil.java8
1 files changed, 8 insertions, 0 deletions
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