I've adapted a bunch of existing PMD stylesheets into ag-pmd-report.xslt (attached) and also provided a sample of the outcome foo.html
This one is designed for ANT and accepts 2 parameters
1) title - Report title (usually the build name)
2) filepathheader - Leading path to strip from the file path name (because it's usually quite long).
ANT usage is
<xslt in="foo.xml" style="${pmd.xslt.dir}/ag-pmd-report.xslt" out=" foo.html">
<param name="title" expression="${build.name}"/>
<param name="filepathheader" expression="${basedir}"/>
</xslt>
I'll leave it up to you folk to decide if it's worthwhile including in the next release.
Best regards and thanks for a great tool.
Arthur Gouros.
==========
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Example output
The XSLT script
Logged In: YES
user_id=5159
Originator: YES
File Added: ag-pmd-report.xslt
Logged In: YES
user_id=5159
Originator: YES
Here's Arthur's note about it:
==========
Hi folks,
I've adapted a bunch of existing PMD stylesheets into ag-pmd-report.xslt (attached) and also provided a sample of the outcome foo.html
This one is designed for ANT and accepts 2 parameters
1) title - Report title (usually the build name)
2) filepathheader - Leading path to strip from the file path name (because it's usually quite long).
ANT usage is
<xslt in="foo.xml" style="${pmd.xslt.dir}/ag-pmd-report.xslt" out=" foo.html">
<param name="title" expression="${build.name}"/>
<param name="filepathheader" expression="${basedir}"/>
</xslt>
I'll leave it up to you folk to decide if it's worthwhile including in the next release.
Best regards and thanks for a great tool.
Arthur Gouros.
==========
Logged In: YES
user_id=5159
Originator: YES
File Added: ag-pmd-report.xslt
An updated stylesheet
An update
Logged In: YES
user_id=5159
Originator: YES
Another update!
File Added: ag-pmd-report.xslt
Logged In: YES
user_id=1679130
Originator: NO
Hi,
As i became the xslt integration expert, i'll work on adding this to pmd.
If somebody can, please assign me this patch.
Logged In: YES
user_id=5159
Originator: YES
Done!