[ 
https://issues.apache.org/jira/browse/MSHARED-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17782286#comment-17782286
 ] 

ASF GitHub Bot commented on MSHARED-1326:
-----------------------------------------

elharo commented on code in PR #19:
URL: 
https://github.com/apache/maven-reporting-api/pull/19#discussion_r1380616343


##########
src/main/java/org/apache/maven/reporting/MavenReport.java:
##########
@@ -53,9 +53,10 @@ 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 expected to be a basename 
only.
      *
-     * @return the output name of this report.
+     * @return the relative path of this report.

Review Comment:
   no period



##########
src/main/java/org/apache/maven/reporting/MavenReport.java:
##########
@@ -84,14 +85,17 @@ public interface MavenReport {
     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.

Review Comment:
   no period



##########
src/main/java/org/apache/maven/reporting/MavenReport.java:
##########
@@ -53,9 +53,10 @@ 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 expected to be a basename 
only.

Review Comment:
   still not sure what "basename" means. I guess the point is it's a directory, 
not a filename? 





> Improve (documentation on) MavenReport interface/AbstractMavenReport class
> --------------------------------------------------------------------------
>
>                 Key: MSHARED-1326
>                 URL: https://issues.apache.org/jira/browse/MSHARED-1326
>             Project: Maven Shared Components
>          Issue Type: Task
>          Components: maven-reporting-api
>    Affects Versions: maven-reporting-impl-4.0.0-M11, 
> maven-reporting-api-4.0.0-M8
>            Reporter: Michael Osipov
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: maven-reporting-api-4.0.0-M9, 
> maven-reporting-impl-4.0.0-M12
>
>
> Based on a 
> [discussion|https://lists.apache.org/thread/6yxlvbhb7odfylfgjgzbvmvxg0vry20b] 
> with [~kriegaex], there are few conceptional or documentational issues with 
> the {{MavenReport}} interface:
> * {{#getOutputName()}} does not clearly say that is actually an optional base 
> *path* and base name (base location) of the report item from a reporting 
> output directory. It needs at least a doc update and maybe even a rename to 
> {{#getOutputPath()}}/{{#getOutputPathLocation()}}?
> * Both {{#setReportOutputDirectory(File outputDirectory)}} and 
> {{#getReportOutputDirectory()}} documentation imply tha this directory solely 
> refers to this single report, but that is not correct. It refers to root 
> directory which contains all possibly generated reports. A shared directory, 
> not exclusive one. Consider your report generates in a subdir, then these do 
> *not* refer to it, but to its parent.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to