Author: richard.opalka(a)jboss.com
Date: 2008-09-28 10:20:42 -0400 (Sun, 28 Sep 2008)
New Revision: 8278
Modified:
common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java
Log:
[JBWS-2322] fixing hudson regression
Modified: common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2008-09-28 07:17:40 UTC
(rev 8277)
+++ common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTest.java 2008-09-28 14:20:42 UTC
(rev 8278)
@@ -21,10 +21,8 @@
*/
package org.jboss.wsf.test;
-import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
-import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URL;
@@ -42,6 +40,7 @@
import org.jboss.logging.Logger;
import org.jboss.wsf.common.DOMWriter;
+import org.jboss.wsf.common.IOUtils;
import org.jboss.wsf.common.concurrent.CopyJob;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -137,17 +136,10 @@
// check status code
if (statusCode != 0)
{
- System.out.println("Error stream");
- System.out.println();
- BufferedReader in = new BufferedReader(new
InputStreamReader(p.getErrorStream()));
- StringBuffer buffer = new StringBuffer();
- String line;
- while ((line = in.readLine()) != null) {
- buffer.append(line + "\n");
- }
- System.out.println(buffer.toString());
- System.out.println();
- System.out.println();
+ System.err.println("Error stream");
+ System.err.println();
+ IOUtils.copyStream(System.err, p.getErrorStream());
+ System.err.println();
}
String fallbackMessage = "Process did exit with status " + statusCode;
Show replies by date