[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to