53 Commits

Author SHA1 Message Date
dion
b51fa7c5fa Fix URL
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113142 13f79535-47bb-0310-9956-ffa450edef68
2003-03-19 05:36:14 +00:00
dion
49b623b2b4 Update repository url to reflect new home
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113140 13f79535-47bb-0310-9956-ffa450edef68
2003-03-19 05:24:07 +00:00
dion
5c6fd0608a Update repository connection to reflect new home
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113139 13f79535-47bb-0310-9956-ffa450edef68
2003-03-19 05:17:10 +00:00
dion
3760087de1 Change site directory to maven.apache.org
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113138 13f79535-47bb-0310-9956-ffa450edef68
2003-03-19 05:09:58 +00:00
bwalding
c1a85aecdd o Add ability to use images in navigation bar
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113124 13f79535-47bb-0310-9956-ffa450edef68
2003-03-15 01:19:00 +00:00
bwalding
ed1d38ef2e o MAVEN-320: Make it handle slightly less conformant hrefs. Feels a bit dirty to me.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113096 13f79535-47bb-0310-9956-ffa450edef68
2003-03-10 14:18:41 +00:00
bwalding
a1b8c11a2e o MAVEN-320: Resolve nav generation problems
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113095 13f79535-47bb-0310-9956-ffa450edef68
2003-03-10 14:17:38 +00:00
bwalding
ecdab533a7 o MAVEN-320: Cleaned up tests to make them more understandable and useful
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113094 13f79535-47bb-0310-9956-ffa450edef68
2003-03-10 14:15:30 +00:00
bwalding
859bff9c13 o No longer fails with getText error if you don't have repo defined
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113093 13f79535-47bb-0310-9956-ffa450edef68
2003-03-10 14:14:08 +00:00
bwalding
ed64542a6d o MAVEN-313: linkcheck plugin should work now
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113064 13f79535-47bb-0310-9956-ffa450edef68
2003-03-07 08:34:11 +00:00
bwalding
7736e24824 o MAVEN-283: Fix whitespace problems
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113054 13f79535-47bb-0310-9956-ffa450edef68
2003-03-06 10:43:38 +00:00
bwalding
e71545502d o MAVEN-283: Fix extraneous whitespace problems
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113053 13f79535-47bb-0310-9956-ffa450edef68
2003-03-06 10:42:26 +00:00
bwalding
4035309d59 o MAVEN-313: Disabling linkcheck as a default until this bug is resolved
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113051 13f79535-47bb-0310-9956-ffa450edef68
2003-03-06 06:55:51 +00:00
knielsen
820c54967f STOP making these freaking#!#�# stylesheets dir!
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113050 13f79535-47bb-0310-9956-ffa450edef68
2003-03-05 18:31:21 +00:00
kaz
8477e3bf29 Enhanced the vdoclet plugin. Previous versions did not provide access
to the Jelly context within the vdoclet velocity templates.  Thus, as a
result, support of the maven.tasklist.taskTag was dropped and the
tasklist plugin was hardcoded to use "@todo" because there was no way to
get the value from the Jelly context.

- VDocletBean can now be passed a JellyContext which gets wrapped in the
  same JellyContextAdapter that I wrote from the Velocity taglib.  To
  access the context from a vdoclet template, use '$jellyContext'.

- Updated the taglib and tag defined in plugin.jelly to automatically
  include the current context.

- Updated the POM to include the jelly deps.  On a side note, also had
  to update the POM of the xdoc plugin as it had a dependency on the
  velocity taglib as well, and it was being loaded before the jar
  specified in this POM.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113032 13f79535-47bb-0310-9956-ffa450edef68
2003-03-03 21:18:08 +00:00
dion
92fb79fa52 Add scm repo for reporting
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113028 13f79535-47bb-0310-9956-ffa450edef68
2003-03-03 14:52:51 +00:00
kaz
31ab82a2c7 Updated the documentation to reflect the change I just made.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113002 13f79535-47bb-0310-9956-ffa450edef68
2003-02-26 20:35:59 +00:00
kaz
dbff6d84c1 No need to explicity copy over the images as they are included in the
generic copying of resources.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113001 13f79535-47bb-0310-9956-ffa450edef68
2003-02-26 19:59:10 +00:00
kaz
b7d07b2a29 While reading the user list, someone was asking about how to include
excel files in his site.  Rather than make some "special" directory,
I've modified the xdoc plugin to copy over anything from the xdoc
directory instead of just *.htm[l] files.  This excludes the CVS
directories and any *.xml files.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112999 13f79535-47bb-0310-9956-ffa450edef68
2003-02-26 19:49:55 +00:00
bwalding
dff505dcbf o Applied patch from Adam Murdoch (email title : "[patch] Fix maven.xdoc.date")
o Made slight mods to fix navigation-top not displaying
o Made inline css mods to make bottom-right actually display at bottom right


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112996 13f79535-47bb-0310-9956-ffa450edef68
2003-02-25 08:06:34 +00:00
bwalding
f28181ac81 o MAVEN-290: Don't transform changes.xml normally. Added changes plugin as default
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112983 13f79535-47bb-0310-9956-ffa450edef68
2003-02-24 13:06:09 +00:00
bwalding
902d17f64e o Removed excess debug logs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112979 13f79535-47bb-0310-9956-ffa450edef68
2003-02-23 16:09:08 +00:00
bwalding
c6dc70ab19 o Consolidate reporting model
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112978 13f79535-47bb-0310-9956-ffa450edef68
2003-02-23 15:57:38 +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
bwalding
16871565cd o MAVEN-283: Use absolute paths for src / dest dir. Required for basedir's with .. in them
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112969 13f79535-47bb-0310-9956-ffa450edef68
2003-02-21 22:42:30 +00:00
kschrader
293ea5e04e Stephen McConnell <mcconnell@apache.org> writes:
The following patch corrects a number of bugs in the maven-report.xml.
The bugs include not checking for the existance of the tasks.xml and
changes.xml which results in links being added to the report summary
page that don't refer to anything.
Cheers, Steve.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112965 13f79535-47bb-0310-9956-ffa450edef68
2003-02-21 16:08:33 +00:00
kaz
c62c5c2576 Fixing mvdb's patch to make it actually work ;-)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112963 13f79535-47bb-0310-9956-ffa450edef68
2003-02-20 22:28:36 +00:00
kaz
96e68fd82d Applying patch from Martin van den Bemt <mllist@mvdb.net>. Adds a new
optionally footer section and corrects the copyright symbol.  Thanks
Martin.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112962 13f79535-47bb-0310-9956-ffa450edef68
2003-02-20 22:04:03 +00:00
jvanzyl
5b756361ae o fixing report name. Thanks to steve mconnell.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112961 13f79535-47bb-0310-9956-ffa450edef68
2003-02-20 20:10:23 +00:00
bwalding
e47d6647c9 o MAVEN-282: Added missing braces to if statements
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112953 13f79535-47bb-0310-9956-ffa450edef68
2003-02-18 14:21:35 +00:00
evenisse
2b3fc1d81b typo
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112952 13f79535-47bb-0310-9956-ffa450edef68
2003-02-18 13:12:32 +00:00
bwalding
4863f893d5 o MAVEN-282: <location> requirement removed. Now calculates at start of site.jsl
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112951 13f79535-47bb-0310-9956-ffa450edef68
2003-02-18 10:59:37 +00:00
bwalding
5f5faba0d6 o MAVEN-282: Removed <location> elements
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112950 13f79535-47bb-0310-9956-ffa450edef68
2003-02-18 10:58:40 +00:00
bwalding
346372e942 o MAVEN-282: Location is now set by site.jsl
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112949 13f79535-47bb-0310-9956-ffa450edef68
2003-02-18 10:57:15 +00:00
kaz
906c47cefa Added missing dep which would cause a build failure on 1.3.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112941 13f79535-47bb-0310-9956-ffa450edef68
2003-02-17 04:42:02 +00:00
bwalding
e1e560c2da o MAVEN-276: Initial checkin. Product is functional, but not optimised for simplicity / performance
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112940 13f79535-47bb-0310-9956-ffa450edef68
2003-02-16 23:05:23 +00:00
bwalding
d08348b17d o About to do weird and wonderful things to the xdoc plugin. Tighten your seatbelts.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112935 13f79535-47bb-0310-9956-ffa450edef68
2003-02-15 14:08:02 +00:00
jvanzyl
9d61d688e3 PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112919 13f79535-47bb-0310-9956-ffa450edef68
2003-02-12 00:57:41 +00:00
jvanzyl
49d0ed8dd9 o updating all plugin POMs.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112915 13f79535-47bb-0310-9956-ffa450edef68
2003-02-11 22:33:56 +00:00
jvanzyl
0bf42fda77 snapshot version resolved POM
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112907 13f79535-47bb-0310-9956-ffa450edef68
2003-02-11 16:37:11 +00:00
bwalding
a8d79c1111 MAVEN-264: Created doc:text-xdoc tag to remove java dependency from license and other plugins
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112899 13f79535-47bb-0310-9956-ffa450edef68
2003-02-11 10:07:38 +00:00
bwalding
60026fa127 Added license property
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112876 13f79535-47bb-0310-9956-ffa450edef68
2003-02-10 08:26:57 +00:00
dion
825d9429af Rename jelly urls from sandbox to commons
PR:
Obtained from:
Submitted by:	
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112861 13f79535-47bb-0310-9956-ffa450edef68
2003-02-08 14:25:03 +00:00
bwalding
26f339b125 MAVEN-248: Added xref-test to navigation menu. This will probably be removed shortly
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112843 13f79535-47bb-0310-9956-ffa450edef68
2003-02-05 11:36:50 +00:00
kaz
c940fa00ad Changed the name of that property to 'includeProjectDocumentation' as
its more descriptive.  The docs are always generated, this property is
just a little shortcut to have them not displayed in the navigation bar.

I've also updated the documentation to reflect this change.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112834 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 04:08:31 +00:00
kaz
2e549c0f09 Added a new property that enables a user to disable the inclusion of the
"Project Documentation" section of the navbar (i.e. the Maven generated
stuff).  This is useful for documentation sites only.  The new property
is:

    maven.xdoc.generateProjectDocumentation = yes

If you want to disable the generation, set this value to 'no' in your
project.properties.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112833 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 03:59:31 +00:00
bwalding
d4f2d33526 MAVEN-250: Created doc:jslFile to perform arbitrary jsl transformations. Old doc:jsl tag uses doc:jslFile internally
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112828 13f79535-47bb-0310-9956-ffa450edef68
2003-02-04 00:18:11 +00:00
kaz
cbd81d7e9c Follow up to my last commit. The HashSet wasn't preserving order, so we
should use a LinkedHashSet, but that isn't part of 1.3.  So we'll just
use an ArrayList and create a new list each time this goal is invoked
which will prevent duplicates from being added.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112790 13f79535-47bb-0310-9956-ffa450edef68
2003-01-31 18:58: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
17b604c9d2 MAVEN-214: LinkChecker plugin additions
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112776 13f79535-47bb-0310-9956-ffa450edef68
2003-01-30 10:58:35 +00:00