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/04 14:29:08 UTC

(maven-reporting-api) branch MSHARED-1326 updated (db565e4 -> 8dd491a)

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

michaelo pushed a change to branch MSHARED-1326
in repository https://gitbox.apache.org/repos/asf/maven-reporting-api.git


 discard db565e4  Refine
 discard 540ec70  Remove period
 discard a70d9da  Incorporate @elharo's comments
 discard d8dc7dc  Remove pointless phrase
 discard 80bd476  Drop term "base"
 discard f9f634a  [MSHARED-1326] Improve (documentation on) MavenReport interface
     new 8dd491a  [MSHARED-1326] Improve (documentation on) MavenReport interface

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   (db565e4)
            \
             N -- N -- N   refs/heads/MSHARED-1326 (8dd491a)

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 1 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:


(maven-reporting-api) 01/01: [MSHARED-1326] Improve (documentation on) MavenReport interface

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

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

commit 8dd491a3ad3e8b23095bb5d0e1289c800e4550be
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Oct 22 21:53:06 2023 +0200

    [MSHARED-1326] Improve (documentation on) MavenReport interface
---
 .../java/org/apache/maven/reporting/MavenReport.java  | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/maven/reporting/MavenReport.java b/src/main/java/org/apache/maven/reporting/MavenReport.java
index 733ba96..e1867fe 100644
--- a/src/main/java/org/apache/maven/reporting/MavenReport.java
+++ b/src/main/java/org/apache/maven/reporting/MavenReport.java
@@ -53,9 +53,11 @@ public interface MavenReport {
     void generate(Sink sink, Locale locale) throws MavenReportException;
 
     /**
-     * Get the base name used to create report's output file(s).
+     * Get the path relative to {@link #getReportOutputDirectory()} where the report's main output
+     * file will be written. The last component is the name of the file without any extension. The
+     * actual output extension will by added by the sink implementation.
      *
-     * @return the output name of this report.
+     * @return the relative path of this report
      */
     String getOutputName();
 
@@ -71,7 +73,7 @@ public interface MavenReport {
      * Get the localized report name.
      *
      * @param locale the wanted locale to return the report's name.
-     * @return the name of this report.
+     * @return the name of this report
      */
     String getName(Locale locale);
 
@@ -79,19 +81,22 @@ public interface MavenReport {
      * Get the localized report description.
      *
      * @param locale the wanted locale to return the report's description.
-     * @return the description of this report.
+     * @return the description of this report
      */
     String getDescription(Locale locale);
 
     /**
-     * Set a new output directory. Useful for staging.
+     * Set a new shared report output directory. This directory may contain the output of other
+     * reports as well.
      *
-     * @param outputDirectory the new output directory
+     * @param outputDirectory the new shared report output directory
      */
     void setReportOutputDirectory(File outputDirectory);
 
     /**
-     * @return the current report output directory.
+     * Get the shared report output directory.
+     *
+     * @return the current shared report output directory
      */
     File getReportOutputDirectory();