44 Commits

Author SHA1 Message Date
aheritier
372355f779 - Add the property maven.javadoc.debug
- MPJAVADOC-28 partially fixed : @link tag not working with package names.
- MPJAVADOC-29 partially fixed : Packages list broken on jdk 1.3 for multiple packages.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115589 13f79535-47bb-0310-9956-ffa450edef68
2004-06-28 23:14:24 +00:00
aheritier
9e089c515c Fix MPJAVADOC-26. The needed flag was incorrect when there was an empty sources directory.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115445 13f79535-47bb-0310-9956-ffa450edef68
2004-06-09 21:54:38 +00:00
brett
83aa779fd6 PR: MPJAVADOC-5
fix javadoc handling of all of maven.compile.src.set, including plugin test


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115403 13f79535-47bb-0310-9956-ffa450edef68
2004-05-26 12:38:27 +00:00
aheritier
89927ad1e1 use a reference to maven.compile.src.set instead of the property.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115401 13f79535-47bb-0310-9956-ffa450edef68
2004-05-25 22:18:22 +00:00
aheritier
144275c14e remove unused log.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115399 13f79535-47bb-0310-9956-ffa450edef68
2004-05-24 05:11:17 +00:00
aheritier
31818c816d re-ident + code optimization
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115397 13f79535-47bb-0310-9956-ffa450edef68
2004-05-23 22:02:54 +00:00
aheritier
11b17f8c5e MPJAVADOC-5 : enabling javadoc for maven.compile.src.set
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115394 13f79535-47bb-0310-9956-ffa450edef68
2004-05-21 23:44:09 +00:00
aheritier
21960f6d5b MPJAVADOC-24 fix with tests
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115389 13f79535-47bb-0310-9956-ffa450edef68
2004-05-19 23:20:34 +00:00
aheritier
55e3994adc MPJAVADOC-24 fix with test
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115376 13f79535-47bb-0310-9956-ffa450edef68
2004-05-18 20:55:51 +00:00
aheritier
5f89f6055f open reports in a new window
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115218 13f79535-47bb-0310-9956-ffa450edef68
2004-05-10 22:26:34 +00:00
dion
85fba4adf0 Fix javadoc:jar so that it uses build dir
Submitted by:	Raphael Philipe Mendes da Silva

Add test to ensure javadoc:jar works


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115196 13f79535-47bb-0310-9956-ffa450edef68
2004-05-07 02:22:52 +00:00
dion
9564da871c trim absolute paths to basedir in javadoc report
PR: MPJAVADOC-22
Obtained from: 	 fabrizio giustina
Submitted by:	 	 fabrizio giustina
Reviewed by:	dion gillard


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115057 13f79535-47bb-0310-9956-ffa450edef68
2004-04-27 01:24:45 +00:00
evenisse
3be75aec9b PR:
Obtained from:
Submitted by:
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS:   If this change addresses a PR in the problem report tracking
CVS:   database, then enter the PR number(s) here.
CVS: Obtained from:
CVS:   If this change has been taken from another system, such as NCSA,
CVS:   then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS:   If this code has been contributed to Apache by someone else; i.e.,
CVS:   they sent us a patch or a new module, then include their name/email
CVS:   address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS:   If we are doing pre-commit code reviews and someone else has
CVS:   reviewed your changes, include their name(s) here.
CVS:   If you have not had it reviewed then delete this line.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114793 13f79535-47bb-0310-9956-ffa450edef68
2004-03-04 18:36:01 +00:00
evenisse
ba28ce151d indent correctly.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114687 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 18:11:29 +00:00
evenisse
77a3d284ca Apply new patch for MPJAVADOC-19
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114686 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 17:56:25 +00:00
evenisse
ab2caf65bb MPJAVADOC-19. Prevent the plugin from failing when a sourceDirectory exists, but it does not contain Java files.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114685 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 13:43:50 +00:00
dion
6a6d56ae0c Apply MPJAVADOC-6
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114570 13f79535-47bb-0310-9956-ffa450edef68
2004-01-08 00:24:53 +00:00
dion
7835460f41 Apply MPJAVADOC-17
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114565 13f79535-47bb-0310-9956-ffa450edef68
2004-01-07 01:20:19 +00:00
dion
2d23a13810 Apply fix for MAVEN-1007
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114280 13f79535-47bb-0310-9956-ffa450edef68
2003-11-09 16:11:34 +00:00
dion
caa6b2f593 Fix for MAVEN-888
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114175 13f79535-47bb-0310-9956-ffa450edef68
2003-10-08 16:38:11 +00:00
dion
2f60e33976 Apply MAVEN-894
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114173 13f79535-47bb-0310-9956-ffa450edef68
2003-10-08 16:22:00 +00:00
vmassol
7b4fbe3f55 Added a maven.javadoc.windowtitle property. What's strange is that the property was already documented but not in the jelly code... go figure...
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114051 13f79535-47bb-0310-9956-ffa450edef68
2003-09-21 06:43:20 +00:00
evenisse
ec56cd202f MAVEN-639. Add maven.javadoc.overview property.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113991 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 10:47:44 +00:00
evenisse
371b5170bb MAVEN-805. Add maven.javadoc.useexternalfile property.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113990 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 09:54:22 +00:00
dion
1d6c924c9d MAVEN-548. Move common reporting properties to defaults
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113899 13f79535-47bb-0310-9956-ffa450edef68
2003-08-29 06:27:54 +00:00
dion
04620f87c9 Again with MAVEN-694.
The patch didn't apply successfully and I've done it manually again.

Please check....


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113870 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 08:43:57 +00:00
dion
d8829f536d Fix for MAVEN-694
Thanks to Martin Skopp.

Patch was applied with some changes


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113869 13f79535-47bb-0310-9956-ffa450edef68
2003-08-22 01:34:09 +00:00
michal
ba06a2da8b Added install, install-snapshot, deploy and deploy snapshot goals
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113683 13f79535-47bb-0310-9956-ffa450edef68
2003-07-22 12:04:20 +00:00
dion
95cc604d8d Teach plugin about sourceMods
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113681 13f79535-47bb-0310-9956-ffa450edef68
2003-07-22 07:05:36 +00:00
bwalding
787f3ce08e Remove plugin name from second javadoc item. Will make report runner skip reports
that have an empty plugin name.  Purely for menu generation.
PR: MAVEN-355


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113270 13f79535-47bb-0310-9956-ffa450edef68
2003-04-06 00:10:44 +00:00
dion
8acb775a1d detab
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113228 13f79535-47bb-0310-9956-ffa450edef68
2003-03-30 16:05:46 +00:00
dion
1bb0789a75 Explicity use ant name space. In prep for removal of jeez etc
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113222 13f79535-47bb-0310-9956-ffa450edef68
2003-03-29 23:25:26 +00:00
evenisse
368c574c06 Add custom tags support. This option is only available with Java 1.4.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113165 13f79535-47bb-0310-9956-ffa450edef68
2003-03-21 14:14:19 +00:00
dion
cb63d3342a Support for custom doclets, per the patch from Todd Papaioannou on 26/06/2002
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113042 13f79535-47bb-0310-9956-ffa450edef68
2003-03-04 02:27:55 +00:00
bwalding
9873992dfe o Add new report deregister goal, modify register goal for slightly modified report method
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112977 13f79535-47bb-0310-9956-ffa450edef68
2003-02-23 15:57:06 +00:00
dion
3867fb318f Remove unused xmlns
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112904 13f79535-47bb-0310-9956-ffa450edef68
2003-02-11 12:10:37 +00:00
bwalding
5a11b310ec MAVEN-264: Xdoc the text
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112902 13f79535-47bb-0310-9956-ffa450edef68
2003-02-11 10:16:45 +00:00
jvanzyl
2757cf66a9 o we need a little dyna tag to turn a txt file into an xdoc.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112896 13f79535-47bb-0310-9956-ffa450edef68
2003-02-11 04:25:49 +00:00
kaz
2c9c349142 Here is a first pass to enable users to specify what reports should
appear in their published site's "Project Reports" section of the
navbar.  Users can now specify a <reports/> section in the POM that
specifies exactly which reports should be included in one's site.  For
example:

  <reports>
    <report>maven-changelog-plugin</report>
    <report>maven-junit-report-plugin</report>
    <report>maven-javadoc-plugin</report>
    <report>maven-jxr-plugin</report>
  </reports>

This would only run the above four plugins when 'maven site' is invoked.
In addition, the navbar and the maven-reports document that is generated
will only contain links to the above specified reports.  Please note,
that the order the reports are specified is the order in which they will
appear.  Note: if you do not have a <reports/> section in the POM, you
will fallback to the standard behavior (which is predefined reports).

Lets talk about how this all works now.  Previously, site.jsl in the
xdoc plugin contained a static set of reports that were included in the
navbar.  This could not be changed by end users.  In addition, we also
had a separate xdoc to maintain which contained a description of all of
the reports (this page is displayed when you click on 'Project Reports'
to expand that section of the navbar).  Again, this was a static page.
Finally, a developer writing their own plugin which generated a report,
would have to submit patches for both of these files for their report to
be included when a 'maven site' was executed.

All of the above deficiencies have been corrected when using the new
<reports/> mechansim.  There is a new protocol which plugin developers
should follow if their plugin generates a report.  Their plugin's
plugin.jelly file should contain a gool like this (don't forget to
include the 'xmlns:doc="doc"' declaration as well):

  <goal name="maven-changelog-plugin:register">
    <doc:registerReport
      name="Change Log"
      link="changelog-report"
      description="Report on the source control changelog."/>
  </goal>

The above should be pretty self explanatory.  The plugin developer
simply defines a 'name'.  The 'name' is used in the navbar and in the
first column of the table in the auto-generated maven-reports file.
'link' is the relative link from the doc directory to the generated
report (without the extension).  Finally, a 'description' should be used
to create a one line summary of the report's contents.  This is used
when auto-generating the maven-reports document.

A plugin may define multiple reports if needed.  For example, here is
the javadoc plugin example:

  <goal name="maven-javadoc-plugin:register">
    <j:if test="${sourcesPresent}">
      <doc:registerReport
        name="JavaDocs"
        link="apidocs/index"
        description="JavaDoc API documentation."/>
      <doc:registerReport
        name="JavaDoc Report"
        link="javadoc"
        description="Report on the generation of JavaDoc."/>
    </j:if>
  </goal>

Another important difference you'll notice above is that the conditional
tests of whether or not a report should appear is no longer part of
site.jsl.  The logic of determining whether the report appears now lies
within the plugin that generates the report.  Thus, in the above
example, only if sources are present, will the reports actually appear
in the navbar and maven-reports document.

So what happens when one types 'maven site'?  Basically, for each
<report/> defined, maven will try to <attainGoal> on that report.  The
goal runs as it normally does.  The magic kicks in when the 'xdoc'
plugin is run (after all of the <reports/> have been run).  The first
thing the xdoc plugin does is determine what reports should be included
in all of the documentation it generates.  The report list (its really a
set) is generated when xdoc calls its own 'xdoc:register-reports' goal.
This goal looks at each <report/> defined in the POM and then calls
<attainGoal name="xyz:register"/> where "xyz" corresponds to the name
defined in the <report/>.  This is where the new protocol is required.
If that goal does not exist, you will get an error from Jelly.

As each of the xyz:register goals are called, they invoke the
<doc:registerReport> tag (which is defined in the xdoc plugin), this tag
basically builds a set of hashtables.  Each hashtable corresponds to a
report and contains a 'name', 'link', and 'description' entry.  After
the completion of 'xdoc:register-reports' we now have a set in the xdoc
context called 'reports' which contains our descriptions of each report.
Site.jsl uses this to dynamically build up the navbar, and the
maven-reports document uses it to build the content of itself.

Phew!  That was a long one.  In summary, if you don't use <reports/>
nothing changes (at least it shouldn't), but in the future, if this
<reports/> thing works out, we will migrate users in this direction.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112789 13f79535-47bb-0310-9956-ffa450edef68
2003-01-31 18:25:28 +00:00
bwalding
2fedb7e06d MAVEN-148: Apply patch to javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112788 13f79535-47bb-0310-9956-ffa450edef68
2003-01-31 12:53:00 +00:00
kaz
eabbe63ba0 Fixing/cleaning up some of the plugins.
o Removed extraneous <mkdir>s
o Converted to new method of accessing properties


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112743 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 17:25:24 +00:00
kaz
b5bae003a6 Fixing the javadoc plugin. It assumed the maven.gen.docs directory
already existed.  As a result, 'maven javadoc' would fail if it didn't
already exist.  Rather than doing yet another <mkdir> in the javadoc
plugin, I've created an xdoc:init goal that creates the directories.
Any plugin that requires the use of those directories should make this
goal a prereq.  I'll be going through all of the plugins to make this
change.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112741 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 16:42:51 +00:00
jvanzyl
e2e957cdde o Applying Rodney's patch for date checking in javadoc generation.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112729 13f79535-47bb-0310-9956-ffa450edef68
2003-01-24 14:09:57 +00:00
jvanzyl
530c640d4f Initial revision
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112724 13f79535-47bb-0310-9956-ffa450edef68
2003-01-24 03:44:26 +00:00