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

ASF GitHub Bot commented on MJAVADOC-751:
-----------------------------------------

michael-o commented on PR #206:
URL: 
https://github.com/apache/maven-javadoc-plugin/pull/206#issuecomment-2226395310

   I can confirm that `-J-Duser.language=en` works:
   ```
   D:\Entwicklung\workspace-4.7\foo\target\site\apidocs>cmd.exe /X /C 
""C:\Program Files\Eclipse Adoptium\jdk-21.0.3.9-hotspot\bin\javadoc.exe" 
@options @packages"
   Quelldateien werden geladen für Package foo...
   Javadoc-Informationen werden erstellt...
   Fehler: Keine öffentlichen oder geschützten Klassen zur Dokumentation 
gefunden.
   1 Fehler
   ```
   with flag set:
   ```
   D:\Entwicklung\workspace-4.7\foo\target\site\apidocs>cmd.exe /X /C 
""C:\Program Files\Eclipse Adoptium\jdk-21.0.3.9-hotspot\bin\javadoc.exe" 
-J-Duser.language= @options @packages"
   Loading source files for package foo...
   Constructing Javadoc information...
   error: No public or protected classes found to document.
   1 error
   ```




> No warnings for localized output
> --------------------------------
>
>                 Key: MJAVADOC-751
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-751
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>          Components: javadoc
>    Affects Versions: 3.5.0
>            Reporter: Mario Schäper
>            Priority: Minor
>              Labels: easyfix, pull-request-available
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> If the output of the javadoc executable is localized the following two errors 
> occur depending on the exit code:
> 1) non-zero: the informational output filter (introduced in MJAVADOC-721) 
> does not work
> 2) zero: no warnings are recognized
>  
> #2 is particularly problematic if `failOnWarnings` is set, since this may 
> cause a build to fail in english environments, but not on certain others.
>  
> Affected are japanese, chinese and since [JDK 
> 19|https://github.com/openjdk/jdk/commit/38df5701ff82] german.



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

Reply via email to