svn commit: r1799136 - /maven/shared/trunk/maven-reporting-exec/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit: r1799136 - /maven/shared/trunk/maven-reporting-exec/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java

hboutemy
Author: hboutemy
Date: Sun Jun 18 21:28:47 2017
New Revision: 1799136

URL: http://svn.apache.org/viewvc?rev=1799136&view=rev
Log:
[MSHARED-647] log reports configured or detected, for MSITE-787

Modified:
    maven/shared/trunk/maven-reporting-exec/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java

Modified: maven/shared/trunk/maven-reporting-exec/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-reporting-exec/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java?rev=1799136&r1=1799135&r2=1799136&view=diff
==============================================================================
--- maven/shared/trunk/maven-reporting-exec/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java (original)
+++ maven/shared/trunk/maven-reporting-exec/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java Sun Jun 18 21:28:47 2017
@@ -194,6 +194,23 @@ public class DefaultMavenReportExecutor
             }
         }
 
+        if ( !reports.isEmpty() )
+        {
+            // log reports, either configured or detected
+            StringBuilder buff = new StringBuilder();
+            for ( MavenReportExecution mre : reports )
+            {
+                if ( buff.length() > 0 )
+                {
+                    buff.append( ", " );
+                }
+                buff.append( mre.getGoal() );
+            }
+            logger.info( reports.size() + " report" + ( reports.size() > 1 ? "s" : "" ) + " "
+                + ( hasUserDefinedReports ? "configured" : "detected" ) + " for " + plugin.getArtifactId() + ":"
+                + plugin.getVersion() + ": " + buff );
+        }
+
         return reports;
     }
 


Loading...