maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r382191 - /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/ForkingWriterStreamConsumer.java
Date Wed, 01 Mar 2006 23:14:04 GMT
Author: brett
Date: Wed Mar  1 15:14:02 2006
New Revision: 382191

URL: http://svn.apache.org/viewcvs?rev=382191&view=rev
Log:
backport remaining fix for MSUREFIRE-53 from testng branch

Modified:
    maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/ForkingWriterStreamConsumer.java

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/ForkingWriterStreamConsumer.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/ForkingWriterStreamConsumer.java?rev=382191&r1=382190&r2=382191&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/ForkingWriterStreamConsumer.java
(original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/ForkingWriterStreamConsumer.java
Wed Mar  1 15:14:02 2006
@@ -34,15 +34,24 @@
 
     public void consumeLine( String line )
     {
-        if ( line.startsWith( ForkingReport.FORKING_PREFIX_HEADING ) && showHeading
)
+        if ( line.startsWith( ForkingReport.FORKING_PREFIX_HEADING ) )
         {
-            printWriter.println( line.substring( headingPrefixLength ) );
+            if ( showHeading )
+            {
+                printWriter.println( line.substring( headingPrefixLength ) );
 
-            printWriter.flush();
+                printWriter.flush();
+            }
         }
         else if ( line.startsWith( ForkingReport.FORKING_PREFIX_STANDARD ) )
         {
             printWriter.println( line.substring( standardPrefixLength ) );
+
+            printWriter.flush();
+        }
+        else
+        {
+            printWriter.println( line );
 
             printWriter.flush();
         }



Mime
View raw message