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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0a9692a  replace deprecated method (#127)
0a9692a is described below

commit 0a9692ac4459ab2c4982bd102024911c73bc482b
Author: Elliotte Rusty Harold <elh...@users.noreply.github.com>
AuthorDate: Mon Dec 16 11:45:00 2024 +0000

    replace deprecated method (#127)
---
 .../java/org/apache/maven/plugin/jxr/AbstractJxrTestCase.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/AbstractJxrTestCase.java
 
b/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/AbstractJxrTestCase.java
index 8a9ec5e..d249460 100644
--- 
a/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/AbstractJxrTestCase.java
+++ 
b/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/AbstractJxrTestCase.java
@@ -77,7 +77,7 @@ public abstract class AbstractJxrTestCase extends 
AbstractMojoTestCase {
     /**
      * Gets the generated report as file in the test maven project.
      *
-     * @param name the name of the report.
+     * @param name the name of the report
      * @return the generated report as file
      * @throws IOException if the return file doesnt exist
      */
@@ -96,8 +96,8 @@ public abstract class AbstractJxrTestCase extends 
AbstractMojoTestCase {
     /**
      * Generate the report and return the generated file
      *
-     * @param goal the mojo goal.
-     * @param pluginXml the name of the xml file in 
"src/test/resources/plugin-configs/".
+     * @param goal the mojo goal
+     * @param pluginXml the name of the XML file in 
"src/test/resources/plugin-configs/".
      * @return the generated HTML file
      * @throws Exception if any
      */
@@ -143,13 +143,13 @@ public abstract class AbstractJxrTestCase extends 
AbstractMojoTestCase {
         testMavenProject = builder.build(pluginXmlFile, 
buildingRequest).getProject();
 
         File outputDir = mojo.getReportOutputDirectory();
-        String filename = mojo.getOutputName() + ".html";
+        String filename = mojo.getOutputPath() + ".html";
 
         return new File(outputDir, filename);
     }
 
     /**
-     * Read the contents of the specified file object into a string
+     * Read the contents of the specified file object into a string.
      */
     protected String readFile(File xrefTestDir, String fileName) throws 
IOException {
         return new 
String(Files.readAllBytes(xrefTestDir.toPath().resolve(fileName)));

Reply via email to