You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brad Davis (JIRA)" <ji...@codehaus.org> on 2006/03/23 23:36:11 UTC

[jira] Created: (MNGECLIPSE-92) Build path for resource directories should be 'exclude all'

Build path for resource directories should be 'exclude all'
-----------------------------------------------------------

         Key: MNGECLIPSE-92
         URL: http://jira.codehaus.org/browse/MNGECLIPSE-92
     Project: Maven 2.x Extension for Eclipse
        Type: Bug

    Reporter: Brad Davis
 Assigned to: Eugene Kuleshov 
    Priority: Minor
 Attachments: mvn2ide.patch

when you update the source folders in eclipse, resource folders are placed on the build path in a naive manner.  While they should be on the build path so that running and debugging in eclipse places them in the class path, they should have an exclude pattern of exclude all, so that any java files within them will not be compiled and so that directories within the resources folders will not appear as packages.

Attached is a patch that corrects this.

-- 
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


[jira] Updated: (MNGECLIPSE-92) Build path for resource directories should be 'exclude all'

Posted by "Eugene Kuleshov (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNGECLIPSE-92?page=all ]

Eugene Kuleshov updated MNGECLIPSE-92:
--------------------------------------

    Assignee:     (was: Eugene Kuleshov)

> Build path for resource directories should be 'exclude all'
> -----------------------------------------------------------
>
>                 Key: MNGECLIPSE-92
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-92
>             Project: Maven 2.x Extension for Eclipse
>          Issue Type: Bug
>            Reporter: Brad Davis
>            Priority: Minor
>         Attachments: mvn2ide.patch
>
>
> when you update the source folders in eclipse, resource folders are placed on the build path in a naive manner.  While they should be on the build path so that running and debugging in eclipse places them in the class path, they should have an exclude pattern of exclude all, so that any java files within them will not be compiled and so that directories within the resources folders will not appear as packages.
> Attached is a patch that corrects this.

-- 
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

        

[jira] Commented: (MNGECLIPSE-92) Build path for resource directories should be 'exclude all'

Posted by "Eugene Kuleshov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNGECLIPSE-92?page=comments#action_66904 ] 

Eugene Kuleshov commented on MNGECLIPSE-92:
-------------------------------------------

Brad, if you want to take this and implement suggested approach for adding resources folders as class folders I would be able to take patch. See Java Buld Path -> Libraries -> Add Class Folder (that is in Eclipse 3.2 UI, in 3.1 it could be slightlu different, though structure of .classpath is the same).

BTW, personally I like that folders for resources appear as packages, so they are flatened by Eclipse in Package Explorer...

> Build path for resource directories should be 'exclude all'
> -----------------------------------------------------------
>
>          Key: MNGECLIPSE-92
>          URL: http://jira.codehaus.org/browse/MNGECLIPSE-92
>      Project: Maven 2.x Extension for Eclipse
>         Type: Bug

>     Reporter: Brad Davis
>     Assignee: Eugene Kuleshov
>     Priority: Minor
>  Attachments: mvn2ide.patch
>
>
> when you update the source folders in eclipse, resource folders are placed on the build path in a naive manner.  While they should be on the build path so that running and debugging in eclipse places them in the class path, they should have an exclude pattern of exclude all, so that any java files within them will not be compiled and so that directories within the resources folders will not appear as packages.
> Attached is a patch that corrects this.

-- 
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


[jira] Commented: (MNGECLIPSE-92) Build path for resource directories should be 'exclude all'

Posted by "Eugene Kuleshov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNGECLIPSE-92?page=comments#action_61821 ] 

Eugene Kuleshov commented on MNGECLIPSE-92:
-------------------------------------------

Interesting observation... I actually was thinking about moing resource folders into classpath instead, so, it won't even be in compiler scope.

> Build path for resource directories should be 'exclude all'
> -----------------------------------------------------------
>
>          Key: MNGECLIPSE-92
>          URL: http://jira.codehaus.org/browse/MNGECLIPSE-92
>      Project: Maven 2.x Extension for Eclipse
>         Type: Bug

>     Reporter: Brad Davis
>     Assignee: Eugene Kuleshov
>     Priority: Minor
>  Attachments: mvn2ide.patch
>
>
> when you update the source folders in eclipse, resource folders are placed on the build path in a naive manner.  While they should be on the build path so that running and debugging in eclipse places them in the class path, they should have an exclude pattern of exclude all, so that any java files within them will not be compiled and so that directories within the resources folders will not appear as packages.
> Attached is a patch that corrects this.

-- 
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


[jira] Commented: (MNGECLIPSE-92) Build path for resource directories should be 'exclude all'

Posted by "Brad Davis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNGECLIPSE-92?page=comments#action_61822 ] 

Brad Davis commented on MNGECLIPSE-92:
--------------------------------------

While you can manually add a folder as a class path item for an individual debug or run configuration, I don't know of any way to do so at the project level, short of adding an item to the build path.  If you know of some way to get folders to to appear on the default classpath of a projects debug config, other than what I'm doing, then that would be a solution.  

Of course my solution doesn't address a few other potential issues.  For instance, the resource folders can have include / exclude settings in the pom, which can't be reflected in debugging (all files in the resources path will be included instead of just the ones specified by the pom).  Another issue I'm hitting is that there's no way to order the test and non test resources to suit all circumstances.  For instance, if I have an identically named file in both places, one with a DB connection used for the junit test, another with another DB setting, then one of them will always come first in debug and run configurations, regardless of whether I want to test or do debugging against the production DB.  I don't know how to address this stuff at all right now.

> Build path for resource directories should be 'exclude all'
> -----------------------------------------------------------
>
>          Key: MNGECLIPSE-92
>          URL: http://jira.codehaus.org/browse/MNGECLIPSE-92
>      Project: Maven 2.x Extension for Eclipse
>         Type: Bug

>     Reporter: Brad Davis
>     Assignee: Eugene Kuleshov
>     Priority: Minor
>  Attachments: mvn2ide.patch
>
>
> when you update the source folders in eclipse, resource folders are placed on the build path in a naive manner.  While they should be on the build path so that running and debugging in eclipse places them in the class path, they should have an exclude pattern of exclude all, so that any java files within them will not be compiled and so that directories within the resources folders will not appear as packages.
> Attached is a patch that corrects this.

-- 
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