]> source.dussan.org Git - aspectj.git/commitdiff
added output snooper to ProcessController for testing client
authorwisberg <wisberg>
Mon, 2 Jun 2003 05:21:37 +0000 (05:21 +0000)
committerwisberg <wisberg>
Mon, 2 Jun 2003 05:21:37 +0000 (05:21 +0000)
util/src/org/aspectj/util/LangUtil.java

index 8462da16d4d6e9150c5f15ec1843e8ebb64e3a3b..800575b2577797b4ec1ede5b5bfb2a99ccfdfe1f 100644 (file)
@@ -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