You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Frank Wienberg (Jira)" <ji...@apache.org> on 2019/11/18 12:59:00 UTC
[jira] [Comment Edited] (MJAVADOC-529) File is not accepted in
sourcespath
[ https://issues.apache.org/jira/browse/MJAVADOC-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16976515#comment-16976515 ]
Frank Wienberg edited comment on MJAVADOC-529 at 11/18/19 12:58 PM:
--------------------------------------------------------------------
Did you try this:
{{ <configuration>}}
{{ <sourcepath>moduleA/src/main/java:moduleB/src/main/java</sourcepath>}}
{{ <sourceFileIncludes>}}
{{ <include>com/packageA/*.java</include>}}
{{ <include>com/packageB/SomeClass.java</include>}}
{{ </sourceFileIncludes>}}
{{ </configuration>}}
We used this approach to select packages _without_ also selecting their subpackages.
was (Author: yetanotherfrank):
Did you try this:
{{ <configuration>}}
{{ <sourcepath>moduleA/src/main/java:moduleB/src/main/java</sourcepath>}}
{{ <sourceFileIncludes>}}
{{ <include>com/packageA/*.java</include>}}
{{ <include>com/packageB/SomeClass.java</include>}}
{{}}{{ </sourceFileIncludes>}}
{{ </configuration>}}
We used this approach to select packages _without_ also selecting their subpackages.
> File is not accepted in sourcespath
> -----------------------------------
>
> Key: MJAVADOC-529
> URL: https://issues.apache.org/jira/browse/MJAVADOC-529
> Project: Maven Javadoc Plugin
> Issue Type: Improvement
> Affects Versions: 3.0.1
> Reporter: Michal Safr
> Priority: Critical
>
> Hello guys
> As per official Javadoc spec, sourcepath can accept both directory and a file.
> [https://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#documentingboth]
> {noformat}
> javadoc -d C:\home\html -sourcepath C:\home\src java.awt C:\home\src\java\applet\Applet.java
> {noformat}
> However sourcepath in the maven javadoc plugin accepts only directory. From AbstractJavadocMojo:
> {code:java}
> sourcePaths = JavadocUtil.pruneDirs( project, sourcePaths );
> {code}
> I'd need to be able to specify a combination of a package in sourcepath and a specific java as in the example above.
> Thank you,
> Michal
--
This message was sent by Atlassian Jira
(v8.3.4#803005)