The following comment has been added to this issue:
Author: Ralph Apel
Created: Sat, 23 Aug 2003 5:52 PM
Body:
If we define a package as a subdir containing .java files, the following scriptlet may
iterate thru their package names:
<project default="default"
xmlns:j="jelly:core"
xmlns:u="jelly:util"
xmlns:ant="jelly:ant"
xmlns:maven="jelly:maven">
<goal name="packages:list">
<ant:fileScanner var="jfiles">
<fileset dir="src/java">
<include name="**/*.java" />
</fileset>
</ant:fileScanner>
<j:useList var="pkgdirs" />
<j:forEach items="${jfiles.iterator()}" var="jfile">
<j:set var="pkgdir" value="${jfile.parentFile.path}" />
<j:if test="${!pkgdirs.contains(pkgdir)}" >
<j:set var="rc" value="${pkgdirs.add(pkgdir)}" />
</j:if>
</j:forEach>
<j:set var="rembase" value="${basedir}/src/java/" />
<j:forEach items="${pkgdirs.iterator()}" var="pkgd">
<j:set var="pkgreld" value="${pkgd.substring(rembase.length())}" />
<u:replace var="pkg" value="${pkgreld}" oldChar="/" newChar="." />
<echo>${pkg}</echo>
</j:forEach>
</goal>
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-528
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-528
Summary: I would like more control over the packages that javadoc uses to generate
online documentation
Type: Improvement
Status: Unassigned
Priority: Major
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin-other
Fix Fors:
1.1
Versions:
1.0-beta-8
1.0-beta-9
1.0-beta-10
Assignee:
Reporter: Julian Payne
Created: Mon, 30 Jun 2003 7:58 AM
Updated: Mon, 4 Aug 2003 12:50 AM
Description:
Today the javadoc plugin takes the list of packages to be what is in the POM and it
then appends ".*" on the end of pom.package.
In our case we will put "a.b.c" as the package but there are some sub-packages that
should not be documented via javadoc. In this case I would like to be able to specify
"a.b.c.d,a.b.c.e.f" as the list of packages to document.
I can suggest 2 possible ways to implement this:
1) If pom.package has a comma in it then don't add the ".*"
2) Add a new property for the plugin that overrides the pom.package if, and only if,
it exists
Thanks,
Julian Payne
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]