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/11/16 16:32:10 UTC

(maven-jxr) branch doxia-2.0.0 updated (2d57b7a -> f0916fd)

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

michaelo pushed a change to branch doxia-2.0.0
in repository https://gitbox.apache.org/repos/asf/maven-jxr.git


 discard 2d57b7a  Improve
 discard c28e900  Dynamically calculate javadocDir/testJavadocDir
     new d4c0360  Dynamically calculate javadocDir/testJavadocDir
     new f0916fd  Improve

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (2d57b7a)
            \
             N -- N -- N   refs/heads/doxia-2.0.0 (f0916fd)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java         | 1 -
 1 file changed, 1 deletion(-)


(maven-jxr) 01/02: Dynamically calculate javadocDir/testJavadocDir

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit d4c03604b28f5df290e2199bec58157fd248bbc1
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Nov 12 23:40:40 2023 +0100

    Dynamically calculate javadocDir/testJavadocDir
    
    @kriegaex
---
 .../src/main/java/org/apache/maven/plugin/jxr/JxrReport.java       | 7 ++++---
 .../src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java   | 6 +++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java
index b890aa9..cd9ee68 100644
--- a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java
+++ b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReport.java
@@ -53,9 +53,10 @@ public class JxrReport extends AbstractJxrReport {
     private String sourcePath;
 
     /**
-     * Directory where Javadoc is generated for this project.
+     * Directory where Javadoc is generated for this project. The default value is calculated from
+     * {@link #getReportOutputDirectory()} and concatenated with {@code apidocs}.
      */
-    @Parameter(defaultValue = "${project.reporting.outputDirectory}/apidocs")
+    @Parameter
     private File javadocDir;
 
     @Override
@@ -121,6 +122,6 @@ public class JxrReport extends AbstractJxrReport {
 
     @Override
     protected File getJavadocDir() {
-        return javadocDir;
+        return javadocDir != null ? javadocDir : new File(getReportOutputDirectory(), "apidocs");
     }
 }
diff --git a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
index cdcbbdf..cc16774 100644
--- a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
+++ b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
@@ -46,9 +46,9 @@ public class JxrTestReport extends AbstractJxrReport {
     private List<String> sourceDirs;
 
     /**
-     * Directory where Test Javadoc is generated for this project.
+     * Directory where Test Javadoc is generated for this project. The default value is calculated from
+     * {@link #getReportOutputDirectory()} and concatenated with {@code testapidocs}.
      */
-    @Parameter(defaultValue = "${project.reporting.outputDirectory}/testapidocs")
     private File testJavadocDir;
 
     @Override
@@ -103,6 +103,6 @@ public class JxrTestReport extends AbstractJxrReport {
 
     @Override
     protected File getJavadocDir() {
-        return testJavadocDir;
+        return testJavadocDir != null ? testJavadocDir : new File(getReportOutputDirectory(), "testapidocs");
     }
 }


(maven-jxr) 02/02: Improve

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit f0916fdf867e9361128dfe18bafe589c386ae34d
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu Nov 16 16:07:05 2023 +0100

    Improve
---
 .../java/org/apache/maven/plugin/jxr/JxrTestReport.java    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
index cc16774..2f42ca9 100644
--- a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
+++ b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrTestReport.java
@@ -30,8 +30,8 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.apache.maven.project.MavenProject;
 
 /**
- * Creates an html-based, cross referenced version of Java source code
- * for a project's test sources.
+ * Creates an html-based, cross referenced version of Java test source code
+ * for a project.
  *
  * @author <a href="mailto:bellingard.NO-SPAM@gmail.com">Fabrice Bellingard</a>
  * @author <a href="mailto:brett@apache.org">Brett Porter</a>
@@ -51,6 +51,11 @@ public class JxrTestReport extends AbstractJxrReport {
      */
     private File testJavadocDir;
 
+    @Override
+    protected String getPluginReportOutputDirectory() {
+        return getReportOutputDirectory().getAbsolutePath() + "/xref-test";
+    }
+
     @Override
     protected List<String> getSourceRoots() {
         List<String> l = new ArrayList<>();
@@ -81,11 +86,6 @@ public class JxrTestReport extends AbstractJxrReport {
         return l;
     }
 
-    @Override
-    protected String getPluginReportOutputDirectory() {
-        return getReportOutputDirectory().getAbsolutePath() + "/xref-test";
-    }
-
     @Override
     public String getDescription(Locale locale) {
         return getBundle(locale).getString("report.xref.test.description");