You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/10/22 11:31:36 UTC

[maven-reporting-impl] branch master updated: Small improvements

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-reporting-impl.git


The following commit(s) were added to refs/heads/master by this push:
     new b081e90  Small improvements
b081e90 is described below

commit b081e90e1da8065d558786927c0cb255d38b2c57
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Oct 22 13:31:15 2023 +0200

    Small improvements
---
 src/main/java/org/apache/maven/reporting/AbstractMavenReport.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java b/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
index c0f9ad8..8b3193b 100644
--- a/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
+++ b/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
@@ -206,6 +206,7 @@ public abstract class AbstractMavenReport extends AbstractMojo implements MavenM
         getLog().info("Rendering to " + outputFormat + " markup");
 
         if (!isExternalReport()) {
+            File outputDirectory = new File(getOutputDirectory());
             String filename = getOutputName() + '.' + outputFormat;
             try {
                 sinkFactory = container.lookup(SinkFactory.class, outputFormat);
@@ -250,7 +251,7 @@ public abstract class AbstractMavenReport extends AbstractMojo implements MavenM
 
             SiteRendererSink sink = new SiteRendererSink(docRenderingContext);
 
-            // TODO Compared to Maven Site Plugin multipage reports will not work and fail with a NPE
+            // TODO Compared to Maven Site Plugin multipage reports will not work and fail with an NPE
             generate(sink, null, locale);
 
             if (!isExternalReport()) // MSHARED-204: only render Doxia sink if not an external report