[
https://issues.apache.org/jira/browse/FELIX-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576175#action_12576175
]
Carsten Ziegeler commented on FELIX-509:
----------------------------------------
I just committed a patch for this, you can now exclude dirs (or files) by
specifying a comma separated list of excludes:
<configuration>
<excludes>target/generated-sources,src/main/java/org/apache/felix/MyClass</excludes>
</configuration>
You can define prefixes to be excluded (patterns using * or **) are not
supported.
> Add support for explicit source directory include/exclude via plugin
> configuration
> ----------------------------------------------------------------------------------
>
> Key: FELIX-509
> URL: https://issues.apache.org/jira/browse/FELIX-509
> Project: Felix
> Issue Type: New Feature
> Components: Maven SCR Plugin
> Reporter: Rodrigo Madera
> Assignee: Carsten Ziegeler
> Priority: Minor
>
> As discussed on the Felix Users mailing list regarding a problem with a
> third-party component (non relevant but QDox in that specific case), there
> was a clear indication that having the ability to control which directories
> are processed by the Maven SCR Plugin would be helpful.
> This feature would allow things like:
> <configuration>
> <exclude>target/generated-sources</exclude>
> </configuration>
> Current Implementation:
> The JavaClassDescriptorManager constructor gets all source directories from
> MavenProject.getCompileSourceRoots(). The exclusion should be coded here
> consulting the plugin configuration block.
> Since the plugin is currently "include all exclude explicit" there may be no
> purpose in actually having an include directive, unless it would support
> sub-tree checking, which would complicate things quite a bit (as in exclude
> target/foo but include target/foo/bar).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.