You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Wim Deblauwe (JIRA)" <ji...@codehaus.org> on 2005/03/30 14:31:45 UTC

[jira] Commented: (MPPMD-14) PMD should run on unit tests

     [ http://jira.codehaus.org/browse/MPPMD-14?page=comments#action_31436 ]
     
Wim Deblauwe commented on MPPMD-14:
-----------------------------------

Got the same problem, hopefully this makes it into the next release. Maybe we should have a property called 'maven.pmd.includetestdir' to tweak this behaviour.

You need something like this to do it:

<j:set var="addtestdir" value="${maven.pmd.includetestdir}"/>
<j:if test="${addtestdir == 'true'}">
   <ant:echo>Including unit test directory: ${pom.build.unitTestSourceDirectory}</ant:echo>
   <fileset dir="${pom.build.unitTestSourceDirectory}"/>
</j:if>




> PMD should run on unit tests
> ----------------------------
>
>          Key: MPPMD-14
>          URL: http://jira.codehaus.org/browse/MPPMD-14
>      Project: maven-pmd-plugin
>         Type: Improvement
>     Reporter: Kenneth Leider
>  Attachments: plugin.jelly.patch, pmd-tests.zip
>
>
> Right now the only files under "pom.build.sourceDirectory" are checked.  It would be nice is source under "pom.build.unitTestSourceDirectory" could be checked as well.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org