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 142
142
import static org .apache .maven .plugins .javadoc .JavadocUtil .isEmpty ;
143
143
import static org .apache .maven .plugins .javadoc .JavadocUtil .isNotEmpty ;
144
144
import static org .apache .maven .plugins .javadoc .JavadocUtil .toList ;
145
- import static org .apache .maven .plugins .javadoc .JavadocUtil .toRelative ;
146
145
147
146
/**
148
147
* Base class with the majority of Javadoc functionality.
@@ -5876,8 +5875,10 @@ protected final JavadocOptions buildJavadocOptions() throws IOException {
5876
5875
options .setTags (toList (tags ));
5877
5876
5878
5877
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 ());
5881
5882
}
5882
5883
5883
5884
File optionsFile = getJavadocOptionsFile ();
You can’t perform that action at this time.
0 commit comments