maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r415644 - in /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter: SurefireBooter.java output/FileOutputConsumerProxy.java
Date Tue, 20 Jun 2006 14:01:02 GMT
Author: carlos
Date: Tue Jun 20 07:01:01 2006
New Revision: 415644

URL: http://svn.apache.org/viewvc?rev=415644&view=rev
Log:
[MSUREFIRE-136] Added option to redirect test output to a file, redirectTestOutputToFile

Modified:
    maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
    maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/output/FileOutputConsumerProxy.java

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java?rev=415644&r1=415643&r2=415644&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
(original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
Tue Jun 20 07:01:01 2006
@@ -810,11 +810,11 @@
         addSurefireClassPathUrl( path );
     }
 
-    private StreamConsumer getForkingStreamConsumer( boolean showHeading, boolean showFooter,
boolean showTestOutput )
+    private StreamConsumer getForkingStreamConsumer( boolean showHeading, boolean showFooter,
boolean redirectTestOutputToFile )
     {
         OutputConsumer outputConsumer = new StandardOutputConsumer();
 
-        if ( !showTestOutput )
+        if ( redirectTestOutputToFile )
         {
             outputConsumer = new FileOutputConsumerProxy( outputConsumer, getReportsDirectory()
);
         }

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/output/FileOutputConsumerProxy.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/output/FileOutputConsumerProxy.java?rev=415644&r1=415643&r2=415644&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/output/FileOutputConsumerProxy.java
(original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/output/FileOutputConsumerProxy.java
Tue Jun 20 07:01:01 2006
@@ -37,6 +37,8 @@
 
     private static final String USER_DIR = System.getProperty( "user.dir" );
 
+    private static final String LINE_SEPARATOR = System.getProperty( "line.separator" );
+
     private File reportsDirectory;
 
     private PrintWriter printWriter;
@@ -136,6 +138,7 @@
             throw new IllegalStateException( "consumeOutputLine called before testSetStarting"
);
         }
         getPrintWriter().write( line );
+        getPrintWriter().write( LINE_SEPARATOR );
     }
 
 }



Mime
View raw message