Added ability to check test sources
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@227485 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8057ff904b
commit
e4391ec68c
@ -23,7 +23,7 @@
|
|||||||
PMD Plugin. Generate PMD reports using the PMD framework.
|
PMD Plugin. Generate PMD reports using the PMD framework.
|
||||||
=============================================================================
|
=============================================================================
|
||||||
-->
|
-->
|
||||||
<project xmlns:j="jelly:core" xmlns:doc="doc" xmlns:ant="jelly:ant">
|
<project xmlns:j="jelly:core" xmlns:doc="doc" xmlns:ant="jelly:ant" xmlns:util="jelly:util">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
========================================================================
|
========================================================================
|
||||||
@ -134,6 +134,20 @@
|
|||||||
</j:if>
|
</j:if>
|
||||||
</j:forEach>
|
</j:forEach>
|
||||||
</fileset>
|
</fileset>
|
||||||
|
|
||||||
|
<!-- run on tests -->
|
||||||
|
<j:if test="${(unitTestSourcesPresent == 'true') and (context.getVariable('maven.pmd.check.tests'))}">
|
||||||
|
<pathconvert property="testSrcSetString" pathSep="||||"
|
||||||
|
refid="maven.test.compile.src.set"/>
|
||||||
|
<util:tokenize var="testDirs" delim="||||">${testSrcSetString}</util:tokenize>
|
||||||
|
|
||||||
|
<j:forEach var="testDir" items="${testDirs}">
|
||||||
|
<fileset dir="${testDir}"
|
||||||
|
includes="${maven.pmd.includes}"
|
||||||
|
excludes="${maven.pmd.excludes}"/>
|
||||||
|
</j:forEach>
|
||||||
|
</j:if>
|
||||||
|
|
||||||
</pmd>
|
</pmd>
|
||||||
</j:when>
|
</j:when>
|
||||||
<j:otherwise>
|
<j:otherwise>
|
||||||
|
|||||||
@ -39,3 +39,6 @@ maven.pmd.cpd.enable = false
|
|||||||
# minimum length of token sequences considered equal
|
# minimum length of token sequences considered equal
|
||||||
|
|
||||||
maven.pmd.cpd.minimumtokencount = 100
|
maven.pmd.cpd.minimumtokencount = 100
|
||||||
|
|
||||||
|
# whether or not to run PMD on test files
|
||||||
|
maven.pmd.check.tests = true
|
||||||
@ -26,6 +26,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.7-SNAPSHOT" date="in SVN">
|
<release version="1.7-SNAPSHOT" date="in SVN">
|
||||||
|
<action dev="carlos" issue="MPPMD-14" type="add">Added ability to check test sources.</action>
|
||||||
<action dev="carlos" issue="MPPMD-15" type="update">Upgrade to pmd-3.2.</action>
|
<action dev="carlos" issue="MPPMD-15" type="update">Upgrade to pmd-3.2.</action>
|
||||||
</release>
|
</release>
|
||||||
<release version="1.6" date="2004-07-30">
|
<release version="1.6" date="2004-07-30">
|
||||||
|
|||||||
@ -87,6 +87,13 @@
|
|||||||
tokens identical. Defaults to "100".
|
tokens identical. Defaults to "100".
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>maven.pmd.check.tests</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
<td>
|
||||||
|
Whether or not to run PMD on test sources. Defaults to true.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user