Skip to content

Commit cd6845b

Browse files
committed
bette naming and fix javadoc
Signed-off-by: Olivier Lamy <[email protected]>
1 parent 445c0e7 commit cd6845b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/it/projects/MJAVADOC-823/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<artifactId>maven-javadoc-plugin</artifactId>
5959
<version>@project.version@</version>
6060
<configuration>
61-
<disableSourcepathEmpty>true</disableSourcepathEmpty>
61+
<disableSourcepathUsage>true</disableSourcepathUsage>
6262
<legacyMode>true</legacyMode>
6363
<sourceFileExcludes>
6464
<sourceFileExclude>**/module-info.java</sourceFileExclude>

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,14 +841,16 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
841841
* The javadoc need to be called with empty {@code -sourcepath} argument and files are in the argfile
842842
* This usually need to be used with the following configuration
843843
* <pre>
844+
* {@code
844845
* <sourceFileExcludes>
845846
* <sourceFileExclude>**\/module-info.java</sourceFileExclude>
846847
* </sourceFileExcludes>
848+
* }
847849
* </pre>
848850
* @since 3.11.2
849851
*/
850-
@Parameter(property = "maven.javadoc.disableSourcepathEmpty")
851-
private boolean disableSourcepathEmpty;
852+
@Parameter(property = "maven.javadoc.disableSourcepathUsage")
853+
private boolean disableSourcepathUsage;
852854

853855
/**
854856
* Specifies the package directory where javadoc will be executed. Multiple packages can be separated by
@@ -4643,7 +4645,7 @@ private void addJavadocOptions(
46434645
}
46444646

46454647
if (moduleSourceDir == null) {
4646-
if (!disableSourcepathEmpty) {
4648+
if (!disableSourcepathUsage) {
46474649
addArgIfNotEmpty(
46484650
arguments,
46494651
"-sourcepath",

0 commit comments

Comments
 (0)