31 Commits

Author SHA1 Message Date
carlos
25f5012127 Removed deprecated use of root classloader
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@188845 13f79535-47bb-0310-9956-ffa450edef68
2005-06-07 19:09:03 +00:00
brett
46fc8ffdf0 clean up dependencies
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@165515 13f79535-47bb-0310-9956-ffa450edef68
2005-05-01 15:09:53 +00:00
vmassol
483dddf00b Added new <code>maven.checkstyle.suppressions.file</code> property.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116012 13f79535-47bb-0310-9956-ffa450edef68
2004-08-28 18:24:53 +00:00
vmassol
c43b233fc5 ensure that the full dir exists
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115590 13f79535-47bb-0310-9956-ffa450edef68
2004-06-29 05:42:45 +00:00
vmassol
a0457e79ac Added first cut of a checkstyle RSS feed. There's lot to improve but I'd like to gather some feedback before working more on this feature. It relies on the fact that RSS readers cache feed data previously read thus keeping an history of the feed content over time.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115584 13f79535-47bb-0310-9956-ffa450edef68
2004-06-28 21:04:04 +00:00
aheritier
23eb7a64de MPCHECKSTYLE-21 + upgrade plugin to 2.4.2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115382 13f79535-47bb-0310-9956-ffa450edef68
2004-05-18 21:50:24 +00:00
brett
46c280a749 fix default on non-Windows machines
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115369 13f79535-47bb-0310-9956-ffa450edef68
2004-05-18 05:10:18 +00:00
evenisse
12becbbd4d MPCHECKSTYLE-7. Allow Checkstyle plugin to access checks file from a URL.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115033 13f79535-47bb-0310-9956-ffa450edef68
2004-04-23 15:48:47 +00:00
evenisse
9a278f5c42 Update to ASL v.2
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114791 13f79535-47bb-0310-9956-ffa450edef68
2004-03-04 18:05:31 +00:00
brett
68cab1ed6d write a dummy license to avoid failure
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114784 13f79535-47bb-0310-9956-ffa450edef68
2004-03-03 10:34:08 +00:00
brett
c952d8881d fix error reporting
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114778 13f79535-47bb-0310-9956-ffa450edef68
2004-03-02 12:56:12 +00:00
brett
c8049c7a83 fix MPCHECKSTYLE-16 by putting back hokey classloader stuff
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114689 13f79535-47bb-0310-9956-ffa450edef68
2004-02-07 23:26:22 +00:00
vmassol
6422d89a10 Prevent projects who do not use the head check from failing if they don't provide a license file.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114315 13f79535-47bb-0310-9956-ffa450edef68
2003-11-12 19:09:07 +00:00
vmassol
06bdb8fd10 Added optional checkstyle jar to execution CP
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114296 13f79535-47bb-0310-9956-ffa450edef68
2003-11-10 12:14:42 +00:00
dion
f90d65b340 Apply MAVEN-843
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114075 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 14:14:50 +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
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
aefa23149e Fit in 80 chars.
Part of MAVEN-545


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113787 13f79535-47bb-0310-9956-ffa450edef68
2003-08-04 15:09:16 +00:00
dion
d3922a124d Use pom.build.sourceModifications where they exist
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113677 13f79535-47bb-0310-9956-ffa450edef68
2003-07-21 05:42:20 +00:00
dion
0ff36d845c ensure maven.docs.outputencoding is taken from xdoc plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113642 13f79535-47bb-0310-9956-ffa450edef68
2003-07-11 05:16:37 +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
evenisse
ec2baff6e1 fixed MAVEN-493.
I register reports only if source, test,... exists.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113563 13f79535-47bb-0310-9956-ffa450edef68
2003-07-01 13:53:42 +00:00
evenisse
6c66c205ff Fixed Maven-489.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113562 13f79535-47bb-0310-9956-ffa450edef68
2003-07-01 12:47:35 +00:00
vmassol
0a88b33616 Correctly apply Thomas patch (Thanks to Florin): Fix fileset include/exclude so that comma separated list are supported.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113467 13f79535-47bb-0310-9956-ffa450edef68
2003-06-05 05:38:00 +00:00
vmassol
9f775e8e68 Fixed "exclude" bug. Thanks to Thomas Diesler.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113464 13f79535-47bb-0310-9956-ffa450edef68
2003-06-04 19:23:03 +00:00
vmassol
5ca66c564b - Upgraded to support Checkstyle 3.1 and bumped version to 2.0-SNAPSHOT
- Cleaned the plugin goals and logic
- Cleaned and updated the documentation


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113453 13f79535-47bb-0310-9956-ffa450edef68
2003-05-30 13:13:26 +00:00
dion
80b4476c59 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@113201 13f79535-47bb-0310-9956-ffa450edef68
2003-03-26 23:27:44 +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
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
kaz
9f191912b7 The checkstyle plugin does not need to create the maven.gen.docs
directory as the doc:jsl tag ensures this is done.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112742 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 17:03:48 +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