You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Barrie Treloar (JIRA)" <ji...@codehaus.org> on 2008/12/16 04:45:19 UTC

[jira] Commented: (MECLIPSE-104) Add the ability to specify source exclusions

    [ http://jira.codehaus.org/browse/MECLIPSE-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158104#action_158104 ] 

Barrie Treloar commented on MECLIPSE-104:
-----------------------------------------

Can you try the latest snapshot please?

Source exclusions can be specified with the excludes tag in the configuration section for the eclipse plugin.

Resource exclusions are specified via normal pom syntax for resources.

However the default behavior of the classpath writer is to specify an includes of **/*.java for source directories and therefore your .svn and CVS directories will never match this.

I would need to know more details about the problem you are facing, but I think the current behavior should be acceptable and we can mark this as already fixed.


> Add the ability to specify source exclusions
> --------------------------------------------
>
>                 Key: MECLIPSE-104
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-104
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>            Reporter: James Mitchell
>            Assignee: Arnaud Heritier
>            Priority: Minor
>             Fix For: 2.6
>
>         Attachments: fix-eclipse-classpaths.sh, MECLIPSE-104.patch, srcExclusions-patch.zip
>
>
> When source files contain scm information (**/.svn/** or **/CVS/**), which is pretty much a given, there's currently no way to specify that those directories be excluded except through the GUI.  This isn't so much of a problem except that the next time a change is needed and this plugin is ran, it will overwrite this exclusion and will force me to exclude it, by hand, again.
> The above case is the driving reason why I decided to get involved and help out.  So, I have written everything (I think) that is needed for this enhancement including, adding to the javadoc, creating a new test that verifies this enhancement, and fully testing this with my own projects (many of them @ Struts).  If there is anything else I need to do as far as site documentation, please tell me where it is and I'll add it.
> This is my first patch to Maven.  If this sucks, please don't ignore it, just say 'it sucks, no thanks" and I'll go about working on something else.
> Thanks so much for your attention.
> --
> James Mitchell

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira