File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/org/apache/maven/plugins/javadoc Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 142142import static org .apache .maven .plugins .javadoc .JavadocUtil .isEmpty ;
143143import static org .apache .maven .plugins .javadoc .JavadocUtil .isNotEmpty ;
144144import static org .apache .maven .plugins .javadoc .JavadocUtil .toList ;
145- import static org .apache .maven .plugins .javadoc .JavadocUtil .toRelative ;
146145
147146/**
148147 * Base class with the majority of Javadoc functionality.
@@ -5876,8 +5875,10 @@ protected final JavadocOptions buildJavadocOptions() throws IOException {
58765875 options .setTags (toList (tags ));
58775876
58785877 if (getProject () != null && getJavadocDirectory () != null ) {
5879- options .setJavadocResourcesDirectory (
5880- toRelative (getProject ().getBasedir (), getJavadocDirectory ().getAbsolutePath ()));
5878+ Path basedir = getProject ().getBasedir ().toPath ();
5879+ Path javadocDirectory = getJavadocDirectory ().toPath ().toAbsolutePath ();
5880+ Path javadocResourcesDirectory = basedir .relativize (javadocDirectory );
5881+ options .setJavadocResourcesDirectory (javadocResourcesDirectory .toString ());
58815882 }
58825883
58835884 File optionsFile = getJavadocOptionsFile ();
You can’t perform that action at this time.
0 commit comments