Added properties maven.checkstyle.output.xml and maven.checkstyle.output.txt
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@292577 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
83c746b20b
commit
3816ec8dbb
@ -208,12 +208,12 @@
|
||||
</ant:classpath>
|
||||
|
||||
<ant:formatter type="xml"
|
||||
toFile="${maven.build.dir}/checkstyle-raw-report.xml"/>
|
||||
toFile="${maven.checkstyle.output.xml}"/>
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${maven.checkstyle.usefile}">
|
||||
<ant:formatter type="plain"
|
||||
toFile="${maven.build.dir}/checkstyle-raw-report.txt"/>
|
||||
toFile="${maven.checkstyle.output.txt}"/>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<ant:formatter type="plain"/>
|
||||
@ -229,8 +229,9 @@
|
||||
|
||||
<goal name="checkstyle:report-internal" description="Generate xdocs from checkstyle xml report">
|
||||
|
||||
<x:transform
|
||||
<doc:jsl
|
||||
input="${maven.build.dir}/checkstyle-raw-report.xml"
|
||||
input="${maven.checkstyle.output.xml}"
|
||||
output="checkstyle-report.xml"
|
||||
stylesheet="${plugin.resources}/checkstyle.jsl"
|
||||
encoding="${maven.docs.outputencoding}"
|
||||
@ -244,7 +245,7 @@
|
||||
|
||||
<!-- Generate a RSS feed of the checktyle errors -->
|
||||
<doc:jsl
|
||||
input="${maven.build.dir}/checkstyle-raw-report.xml"
|
||||
input="${maven.checkstyle.output.xml}"
|
||||
output="checkstyle.rss"
|
||||
stylesheet="${plugin.resources}/checkstyle2rss.jsl"
|
||||
encoding="${maven.docs.outputencoding}"
|
||||
@ -292,7 +293,7 @@
|
||||
<echo>Generating report for severity ${severity}...</echo>
|
||||
|
||||
<doc:jsl
|
||||
input="${maven.build.dir}/checkstyle-raw-report.xml"
|
||||
input="${maven.checkstyle.output.xml}"
|
||||
output="checkstyle-report-${severity}.xml"
|
||||
stylesheet="${plugin.resources}/checkstyle_severity_filter.jsl"
|
||||
encoding="${maven.docs.outputencoding}"
|
||||
|
||||
@ -31,3 +31,7 @@ maven.checkstyle.check.tests=true
|
||||
# If useFile is false then the checkstyle task will display violations
|
||||
# on stdout.
|
||||
maven.checkstyle.usefile = true
|
||||
|
||||
# Output files
|
||||
maven.checkstyle.output.xml=${maven.build.dir}/checkstyle-raw-report.xml
|
||||
maven.checkstyle.output.txt=${maven.build.dir}/checkstyle-raw-report.txt
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="3.0-SNAPSHOT" date="in SVN">
|
||||
<action dev="carlos" type="add">Added properties maven.checkstyle.output.xml and maven.checkstyle.output.txt</action>
|
||||
<action dev="aheritier" type="update">It requires at least maven-plugin-plugin v1.7.</action>
|
||||
<action dev="aheritier" type="update">It requires at least maven-xdoc-plugin v1.10.</action>
|
||||
<action dev="aheritier" type="update" issue="MPCHECKSTYLE-39">The checkstyle plugin use the maven.xdoc.locale.default to generate the report.</action>
|
||||
|
||||
@ -137,6 +137,22 @@
|
||||
suppressions file.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.checkstyle.output.xml</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Output file where the xml report is written.
|
||||
Defaults to <code>${maven.build.dir}/checkstyle-raw-report.xml</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.checkstyle.output.txt</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Output file where the txt report is written.
|
||||
Defaults to <code>${maven.build.dir}/checkstyle-raw-report.txt</code>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user