Package: maven-javadoc-plugin / 2.10.4-1

plexus-utils2-compatibility.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: FileUtils.fileWrite(File, String, String) was introduced in
 plexus-utils 2.0.6 but this version isn't available in Debian yet. So we fall
 back to FileUtils.fileWrite(String, String, String)
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java
+++ b/src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java
@@ -5267,7 +5267,7 @@
                     StringUtils.replaceOnce( fileContents, "function loadFrames() {", fixData );
                 if ( !patchedFileContents.equals( fileContents ) )
                 {
-                    FileUtils.fileWrite( file, outputEncoding, patchedFileContents );
+                    FileUtils.fileWrite( file.getAbsolutePath(), outputEncoding, patchedFileContents );
                     patched++;
                 }
             }