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:classpath>
|
||||||
|
|
||||||
<ant:formatter type="xml"
|
<ant:formatter type="xml"
|
||||||
toFile="${maven.build.dir}/checkstyle-raw-report.xml"/>
|
toFile="${maven.checkstyle.output.xml}"/>
|
||||||
|
|
||||||
<j:choose>
|
<j:choose>
|
||||||
<j:when test="${maven.checkstyle.usefile}">
|
<j:when test="${maven.checkstyle.usefile}">
|
||||||
<ant:formatter type="plain"
|
<ant:formatter type="plain"
|
||||||
toFile="${maven.build.dir}/checkstyle-raw-report.txt"/>
|
toFile="${maven.checkstyle.output.txt}"/>
|
||||||
</j:when>
|
</j:when>
|
||||||
<j:otherwise>
|
<j:otherwise>
|
||||||
<ant:formatter type="plain"/>
|
<ant:formatter type="plain"/>
|
||||||
@ -229,8 +229,9 @@
|
|||||||
|
|
||||||
<goal name="checkstyle:report-internal" description="Generate xdocs from checkstyle xml report">
|
<goal name="checkstyle:report-internal" description="Generate xdocs from checkstyle xml report">
|
||||||
|
|
||||||
|
<x:transform
|
||||||
<doc:jsl
|
<doc:jsl
|
||||||
input="${maven.build.dir}/checkstyle-raw-report.xml"
|
input="${maven.checkstyle.output.xml}"
|
||||||
output="checkstyle-report.xml"
|
output="checkstyle-report.xml"
|
||||||
stylesheet="${plugin.resources}/checkstyle.jsl"
|
stylesheet="${plugin.resources}/checkstyle.jsl"
|
||||||
encoding="${maven.docs.outputencoding}"
|
encoding="${maven.docs.outputencoding}"
|
||||||
@ -244,7 +245,7 @@
|
|||||||
|
|
||||||
<!-- Generate a RSS feed of the checktyle errors -->
|
<!-- Generate a RSS feed of the checktyle errors -->
|
||||||
<doc:jsl
|
<doc:jsl
|
||||||
input="${maven.build.dir}/checkstyle-raw-report.xml"
|
input="${maven.checkstyle.output.xml}"
|
||||||
output="checkstyle.rss"
|
output="checkstyle.rss"
|
||||||
stylesheet="${plugin.resources}/checkstyle2rss.jsl"
|
stylesheet="${plugin.resources}/checkstyle2rss.jsl"
|
||||||
encoding="${maven.docs.outputencoding}"
|
encoding="${maven.docs.outputencoding}"
|
||||||
@ -292,7 +293,7 @@
|
|||||||
<echo>Generating report for severity ${severity}...</echo>
|
<echo>Generating report for severity ${severity}...</echo>
|
||||||
|
|
||||||
<doc:jsl
|
<doc:jsl
|
||||||
input="${maven.build.dir}/checkstyle-raw-report.xml"
|
input="${maven.checkstyle.output.xml}"
|
||||||
output="checkstyle-report-${severity}.xml"
|
output="checkstyle-report-${severity}.xml"
|
||||||
stylesheet="${plugin.resources}/checkstyle_severity_filter.jsl"
|
stylesheet="${plugin.resources}/checkstyle_severity_filter.jsl"
|
||||||
encoding="${maven.docs.outputencoding}"
|
encoding="${maven.docs.outputencoding}"
|
||||||
|
|||||||
@ -31,3 +31,7 @@ maven.checkstyle.check.tests=true
|
|||||||
# If useFile is false then the checkstyle task will display violations
|
# If useFile is false then the checkstyle task will display violations
|
||||||
# on stdout.
|
# on stdout.
|
||||||
maven.checkstyle.usefile = true
|
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>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="3.0-SNAPSHOT" date="in SVN">
|
<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-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">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>
|
<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.
|
suppressions file.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user