maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1161251 - /maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
Date Wed, 24 Aug 2011 19:51:35 GMT
Author: hboutemy
Date: Wed Aug 24 19:51:35 2011
New Revision: 1161251

URL: http://svn.apache.org/viewvc?rev=1161251&view=rev
Log:
[MSHARED-204] only render Doxia sink if not an external report

Modified:
    maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java

Modified: maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java?rev=1161251&r1=1161250&r2=1161251&view=diff
==============================================================================
--- maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
(original)
+++ maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
Wed Aug 24 19:51:35 2011
@@ -98,14 +98,18 @@ public abstract class AbstractMavenRepor
 
             generate( sink, null, locale );
 
-            outputDirectory.mkdirs();
-
-            writer = new OutputStreamWriter( new FileOutputStream( new File( outputDirectory,
filename ) ), "UTF-8" );
-
-            getSiteRenderer().generateDocument( writer, sink, siteContext );
-
-            //getSiteRenderer().copyResources( siteContext, new File( project.getBasedir(),
"src/site/resources" ),
-            //                            outputDirectory );
+            if ( !isExternalReport() ) // MSHARED-204: only render Doxia sink if not an external
report
+            {
+                outputDirectory.mkdirs();
+
+                writer =
+                    new OutputStreamWriter( new FileOutputStream( new File( outputDirectory,
filename ) ), "UTF-8" );
+
+                getSiteRenderer().generateDocument( writer, sink, siteContext );
+
+                //getSiteRenderer().copyResources( siteContext, new File( project.getBasedir(),
"src/site/resources" ),
+                //                            outputDirectory );
+            }
         }
         catch ( RendererException e )
         {



Mime
View raw message