Skip to content

Commit 3da6415

Browse files
committed
fix
1 parent 68cec33 commit 3da6415

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,9 +2232,9 @@ protected Collection<JavadocModule> getSourcePaths() throws MavenReportException
22322232
Path relative = base.relativize(
22332233
getJavadocDirectory().toPath().toAbsolutePath());
22342234
Path javadocDir = subProject.getBasedir().toPath().resolve(relative);
2235-
if (Files.exists(javadocDir) && javadocDir.isDirectory()) {
2235+
if (Files.isDirectory(javadocDir)) {
22362236
Collection<Path> l = JavadocUtil.pruneDirs(
2237-
subProject, Collections.singletonList(javadocDir.getAbsolutePath()));
2237+
subProject, Collections.singletonList(javadocDir.toAbsolutePath().toString()));
22382238
additionalSourcePaths.addAll(l);
22392239
}
22402240
}
@@ -3862,7 +3862,6 @@ private void addLinkArguments(List<String> arguments) throws MavenReportExceptio
38623862
*
38633863
* @param javadocOutputDirectory not null
38643864
* @throws MavenReportException if any
3865-
* @see #copyDefaultStylesheet(File)
38663865
* @see #copyJavadocResources(File)
38673866
* @see #copyAdditionalJavadocResources(File)
38683867
*/

0 commit comments

Comments
 (0)