maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r684554 - /maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
Date Sun, 10 Aug 2008 17:01:29 GMT
Author: bentmann
Date: Sun Aug 10 10:01:29 2008
New Revision: 684554

URL: http://svn.apache.org/viewvc?rev=684554&view=rev
Log:
o Made build summary use error level for list of failed builds

Modified:
    maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java

Modified: maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java?rev=684554&r1=684553&r2=684554&view=diff
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
(original)
+++ maven/plugins/trunk/maven-invoker-plugin/src/main/java/org/apache/maven/plugin/invoker/InvokerMojo.java
Sun Aug 10 10:01:29 2008
@@ -506,28 +506,24 @@
 
         if ( !suppressSummaries )
         {
-            final StringBuffer summary = new StringBuffer();
-            summary.append( "\n\n" );
-            summary.append( "---------------------------------------\n" );
-            summary.append( "Execution Summary:\n" );
-            summary.append( "Builds Passing: " ).append( includedPoms.length - failures.size()
).append( "\n" );
-            summary.append( "Builds Failing: " ).append( failures.size() ).append( "\n" );
-            summary.append( "---------------------------------------\n" );
+            getLog().info( "---------------------------------------" );
+            getLog().info( "Execution Summary:" );
+            getLog().info( "  Builds Passing: " + ( includedPoms.length - failures.size()
) );
+            getLog().info( "  Builds Failing: " + failures.size() );
+            getLog().info( "---------------------------------------" );
 
             if ( !failures.isEmpty() )
             {
-                summary.append( "\nThe following builds failed:\n" );
+                getLog().error( "The following builds failed:" );
 
                 for ( final Iterator it = failures.iterator(); it.hasNext(); )
                 {
-                    final String pom = ( String ) it.next();
-                    summary.append( "\n*  " ).append( pom );
+                    final String pom = (String) it.next();
+                    getLog().error( "*  " + pom );
                 }
 
-                summary.append( "\n" );
+                getLog().info( "---------------------------------------" );
             }
-
-            getLog().info( summary.toString() );
         }
 
         if ( !failures.isEmpty() )



Mime
View raw message