michael-o commented on code in PR #159: URL: https://github.com/apache/maven-javadoc-plugin/pull/159#discussion_r964160516
########## src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java: ########## @@ -6879,6 +6892,33 @@ private void writeDebugJavadocScript( String cmdLine, File javadocOutputDirector } } + /** + * Write a files containing the javadoc errors and warnings. + * + * @param errorsAndWarnings the javadoc errors and warnings as string, not null. + * @param javadocOutputDirectory the output dir, not null. + * @since 3.4.2-SNAPSHOT + */ + private void writeErrorFile( String errorsAndWarnings, File javadocOutputDirectory ) + { + File commandLineFile = new File( javadocOutputDirectory, ERRORS_FILE_NAME ); + commandLineFile.getParentFile().mkdirs(); + + try + { + FileUtils.fileWrite( commandLineFile.getAbsolutePath(), null /* platform encoding */, errorsAndWarnings ); + + if ( !SystemUtils.IS_OS_WINDOWS ) + { + Runtime.getRuntime().exec( new String[]{ "chmod", "a+x", commandLineFile.getAbsolutePath() } ); Review Comment: The file referenced is a script, totally unrelated to this. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org