Commit Graph
51 Commits
Author SHA1 Message Date
dion 2fcb8d002b Instantiate mapper and pathTool if not provided
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114102 13f79535-47bb-0310-9956-ffa450edef68
2003-09-26 15:53:41 +00:00
dion 2e6fe2ddba Reformatting
use empty, not == null


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114017 13f79535-47bb-0310-9956-ffa450edef68
2003-09-16 04:54:20 +00:00
dion 06aebd5846 Fix bad indentation
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114011 13f79535-47bb-0310-9956-ffa450edef68
2003-09-14 15:41:33 +00:00
dion 1eb943fe89 Remove non-existent findbugs plugin.
We really need to externalise this next release.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114009 13f79535-47bb-0310-9956-ffa450edef68
2003-09-14 15:09:09 +00:00
evenisse 6b08dd65dc Remove jcoverage report from default reports.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113992 13f79535-47bb-0310-9956-ffa450edef68
2003-09-10 13:26:07 +00:00
evenisse edabb3f6ed Add JCoverage report to default reports.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113987 13f79535-47bb-0310-9956-ffa450edef68
2003-09-09 09:26:55 +00:00
bwalding 149144084b Fixed a typo in registration of findbugs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113902 13f79535-47bb-0310-9956-ffa450edef68
2003-08-30 01:08:52 +00:00
bwalding 81dbf69ce9 Added FindBugs report to default lineup
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113901 13f79535-47bb-0310-9956-ffa450edef68
2003-08-30 01:03:37 +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
evenisse b802c73213 set the default value of state in itemLink tag to none.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113867 13f79535-47bb-0310-9956-ffa450edef68
2003-08-21 09:01:08 +00:00
dion b623fe0dda Switch stable branch back to HEAD
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113855 13f79535-47bb-0310-9956-ffa450edef68
2003-08-19 04:45:08 +00:00
dion df704c6029 Move utility classes to util package
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113756 13f79535-47bb-0310-9956-ffa450edef68
2003-07-30 00:50:37 +00:00
dion 938d29da85 Fix badly declared velocity taglib
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113751 13f79535-47bb-0310-9956-ffa450edef68
2003-07-29 02:03:08 +00:00
michal b454fc7ff7 Dependency report was completely rewritten. Report generator is now aware of notion of type and groupId.
In addition URL and Description (which was also added to the report)
of the dependency can be retrieved from its POM if there is one in the local repository
    
Documentation of goals ported to new dedicated format
  
Update to maven 1.0-beta-10


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113726 13f79535-47bb-0310-9956-ffa450edef68
2003-07-25 22:47:30 +00:00
dion 56b8d4cba0 Generate nav template in a different way
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113691 13f79535-47bb-0310-9956-ffa450edef68
2003-07-24 06:26:44 +00:00
bwalding 700d49bf7d Completed updates. Much much cleaner. Could still do to remove the temporary file generation.
PR: MAVEN-602


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113689 13f79535-47bb-0310-9956-ffa450edef68
2003-07-23 10:25:18 +00:00
bwalding f6e68cc813 Pass 1.
o It works, but is incomplete and broken.  I am committing now as I have very bad
non-deterministic behaviour with jelly and I like committing as I go.

o Need to convert project documentation tree to navigation.jsl
o Need to remove temporary file creation in plugin.jsl

PR: MAVEN-602


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113687 13f79535-47bb-0310-9956-ffa450edef68
2003-07-23 10:06:41 +00:00
bwalding fe5a39a9c5 Clean up the alignment and remove that dodgy little "strich" thing from tigris (overridden in maven.css rather than removed from tigris)
PR: MAVEN-579


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113661 13f79535-47bb-0310-9956-ffa450edef68
2003-07-17 11:02:26 +00:00
bwalding 1d3a01e9d6 o Update the templates to draw handles
I'm still not 100% on drawing an expanded handle on an uncollapsible node.
I think we could do to remove the little - in front of every item too.
PR: MAVEN-579


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113660 13f79535-47bb-0310-9956-ffa450edef68
2003-07-17 10:44:28 +00:00
dion f6ec3eee6d Add a comment
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113655 13f79535-47bb-0310-9956-ffa450edef68
2003-07-17 02:03:14 +00:00
dion 052f1c76a7 ensure maven.docs.omitXmlDeclaration has a value
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113641 13f79535-47bb-0310-9956-ffa450edef68
2003-07-11 05:15:25 +00:00
dion 17c3307f01 Remove tabs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113624 13f79535-47bb-0310-9956-ffa450edef68
2003-07-09 07:22:28 +00:00
evenisse 68daa1e923 Add xml declaration to all xml generated report. Fixed for character encoding.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113614 13f79535-47bb-0310-9956-ffa450edef68
2003-07-08 11:01:08 +00:00
michal e66dc52695 Fix for Maven-383
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113421 13f79535-47bb-0310-9956-ffa450edef68
2003-05-15 12:56:27 +00:00
dion 3d4bbfc870 Fix formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113343 13f79535-47bb-0310-9956-ffa450edef68
2003-04-13 15:08:12 +00:00
bwalding 4ba66d6c06 IE6 is a piece of shit. It doesn't understand XHTML transitional properly as far as I can tell.
Backed out changes.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113342 13f79535-47bb-0310-9956-ffa450edef68
2003-04-13 12:42:17 +00:00
bwalding 2a9bc0d8a6 We were theoretically putting out XHTML Transitional before, now we are
actually outputting XHTML 1.1 Transitional.  Only minor changes,
but some older browsers might have difficulties?


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113327 13f79535-47bb-0310-9956-ffa450edef68
2003-04-12 07:47:00 +00:00
dion d42db827ef Fix typo in comment
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113305 13f79535-47bb-0310-9956-ffa450edef68
2003-04-09 05:47:29 +00:00
bwalding 4fcc6e9266 Pass in encoding to velocity merge in generate-from-pom
PR: MAVEN-293
Submitted by:	Kuisong Tong


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113269 13f79535-47bb-0310-9956-ffa450edef68
2003-04-05 23:37:32 +00:00
dion 230698d6ee detab
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113229 13f79535-47bb-0310-9956-ffa450edef68
2003-03-30 16:18:05 +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 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 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 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 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 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 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
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
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
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