qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ai...@apache.org
Subject svn commit: r680309 - /incubator/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java
Date Mon, 28 Jul 2008 10:04:54 GMT
Author: aidan
Date: Mon Jul 28 03:04:53 2008
New Revision: 680309

URL: http://svn.apache.org/viewvc?rev=680309&view=rev
Log:
QPID-1200: Only set out and err if we're actually redirecting them.

Modified:
    incubator/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java

Modified: incubator/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java?rev=680309&r1=680308&r2=680309&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java
(original)
+++ incubator/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java
Mon Jul 28 03:04:53 2008
@@ -26,6 +26,7 @@
 import java.io.*;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Properties;
 import java.util.StringTokenizer;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
@@ -166,10 +167,10 @@
         {
             out = new PrintStream(String.format("%s/TEST-%s.out", _output, qname));
             err = new PrintStream(String.format("%s/TEST-%s.err", _output, qname));
+            System.setOut(out);
+            System.setErr(err);
         }
 
-        System.setOut(out);
-        System.setErr(err);
 
         _logger.info("========== start " + name + " ==========");
         startBroker();



Mime
View raw message