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

sjaranowski 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 f0f2ef5  Use getOutputPath instead of deprecated getOutputName
f0f2ef5 is described below

commit f0f2ef5145a04355c96bc7d7786c5baab5358efa
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Mar 30 22:04:16 2026 +0200

    Use getOutputPath instead of deprecated getOutputName
---
 .../java/org/apache/maven/reporting/AbstractMavenReport.java   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java 
b/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
index 8e1e699..c2dd8b5 100644
--- a/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
+++ b/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
@@ -217,9 +217,9 @@ public abstract class AbstractMavenReport extends 
AbstractMojo implements MavenM
     private void reportToMarkup() throws MojoExecutionException {
         Path relativeOutput = 
getProject().getBasedir().toPath().relativize(new 
File(getOutputDirectory()).toPath());
         if (isExternalReport()) {
-            getLog().info("Rendering external report to " + 
relativeOutput.resolve(getOutputName()));
+            getLog().info("Rendering external report to " + 
relativeOutput.resolve(getOutputPath()));
         } else {
-            String filename = getOutputName() + '.' + outputFormat;
+            String filename = getOutputPath() + '.' + outputFormat;
             getLog().info("Rendering report as " + outputFormat + " markup to 
" + relativeOutput.resolve(filename));
 
             try {
@@ -256,11 +256,11 @@ public abstract class AbstractMavenReport extends 
AbstractMojo implements MavenM
     }
 
     private void reportToSite() throws MojoExecutionException {
-        String filename = getOutputName() + ".html";
+        String filename = getOutputPath() + ".html";
 
         Path relativeOutput = 
getProject().getBasedir().toPath().relativize(new 
File(getOutputDirectory()).toPath());
         if (isExternalReport()) {
-            getLog().info("Rendering external report to " + 
relativeOutput.resolve(getOutputName()));
+            getLog().info("Rendering external report to " + 
relativeOutput.resolve(getOutputPath()));
         } else {
             getLog().info("Rendering report to " + 
relativeOutput.resolve(filename));
         }
@@ -277,7 +277,7 @@ public abstract class AbstractMavenReport extends 
AbstractMojo implements MavenM
 
             String reportMojoInfo = mojoExecution.getPlugin().getId() + ":" + 
mojoExecution.getGoal();
             DocumentRenderingContext docRenderingContext =
-                    new DocumentRenderingContext(outputDirectory, 
getOutputName(), reportMojoInfo);
+                    new DocumentRenderingContext(outputDirectory, 
getOutputPath(), reportMojoInfo);
 
             SiteRendererSink sink = new SiteRendererSink(docRenderingContext);
 

Reply via email to