[
https://issues.apache.org/jira/browse/MPMD-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567583#comment-14567583
]
Andreas Dangel edited comment on MPMD-206 at 6/1/15 5:19 PM:
-------------------------------------------------------------
Hi [[email protected]],
Thanks for looking into this issue.
Yes, that's exactly what I wanted to achieve - setting the source directories
that should be analyzed by PMD without using so much configuration via
{{build-helper-maven-plugin}}.
I basically tried to do the same, what is done in the checkstyle plugin, where
the sourceDirectories can also be configured:
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#sourceDirectories
- but I ran into what I believe is this bug: MNG-5440
Hm... I found this interesting issue MCHECKSTYLE-70 which added the
{{sourceDirectories}} property for the checkstyle plugin. I still think, it was
intended as a property, that can be changed (and thus override the default
project.compileRoots).
was (Author: adangel):
Hi [[email protected]],
Thanks for looking into this issue.
Yes, that's exactly what I wanted to achieve - setting the source directories
that should be analyzed by PMD without using so much configuration via
{{build-helper-maven-plugin}}.
I basically tried to do the same, what is done in the checkstyle plugin, where
the sourceDirectories can also be configured:
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#sourceDirectories
- but I ran into what I believe is this bug: MNG-5440
> Make the sourceDirectories configurable
> ---------------------------------------
>
> Key: MPMD-206
> URL: https://issues.apache.org/jira/browse/MPMD-206
> Project: Maven PMD Plugin
> Issue Type: Improvement
> Components: CPD, PMD
> Affects Versions: 3.4
> Reporter: Andreas Dangel
>
> When analyzing a language other than Java, the sources currently have to be
> added by using the build-helper-maven-plugin to add additional source folders.
> This change adds the parameters {{sourceDirectories}} and
> {{testSourceDirectories}}, similarly as it is done in the checkstyle plugin.
> I'll provide a pull request for this:
> https://github.com/apache/maven-plugins/pull/47
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)