File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
src/main/java/org/apache/maven/plugins/javadoc Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 145
145
import static org .apache .maven .plugins .javadoc .JavadocUtil .toRelative ;
146
146
147
147
/**
148
- * Base class with majority of Javadoc functionalities .
148
+ * Base class with the majority of Javadoc functionality .
149
149
*
150
150
* @author <a href="mailto:[email protected] ">Brett Porter</a>
151
151
* @author <a href="mailto:[email protected] ">Vincent Siveton</a>
@@ -2177,12 +2177,15 @@ protected Collection<JavadocModule> getSourcePaths() throws MavenReportException
2177
2177
}
2178
2178
2179
2179
if (getJavadocDirectory () != null ) {
2180
- String javadocDirRelative = PathUtils .toRelative (
2181
- project .getBasedir (), getJavadocDirectory ().getAbsolutePath ());
2182
- File javadocDir = new File (subProject .getBasedir (), javadocDirRelative );
2183
- if (javadocDir .exists () && javadocDir .isDirectory ()) {
2180
+ Path base = project .getBasedir ().toPath ();
2181
+ Path relative = base .relativize (
2182
+ getJavadocDirectory ().toPath ().toAbsolutePath ());
2183
+ Path javadocDir = subProject .getBasedir ().toPath ().resolve (relative );
2184
+ if (Files .isDirectory (javadocDir )) {
2184
2185
Collection <Path > l = JavadocUtil .pruneDirs (
2185
- subProject , Collections .singletonList (javadocDir .getAbsolutePath ()));
2186
+ subProject ,
2187
+ Collections .singletonList (
2188
+ javadocDir .toAbsolutePath ().toString ()));
2186
2189
additionalSourcePaths .addAll (l );
2187
2190
}
2188
2191
}
You can’t perform that action at this time.
0 commit comments