You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Stephen Haberman (JIRA)" <ji...@apache.org> on 2011/01/29 06:18:43 UTC

[jira] Created: (BUILDR-566) include non-java files in src/main/java as resources

include non-java files in src/main/java as resources
----------------------------------------------------

                 Key: BUILDR-566
                 URL: https://issues.apache.org/jira/browse/BUILDR-566
             Project: Buildr
          Issue Type: Wish
          Components: Packaging
    Affects Versions: 1.4.4
            Reporter: Stephen Haberman
            Priority: Minor


For resource files that are closely related to a .java file, I often skip src/main/resources and put the file into src/main/java next to its corresponding .java file.

This requires an easy but fairly boilerplate line of:

project.resources.from(_('src/main/java')).exclude('*.java')

In my buildfile. Besides reducing boilerplate, I always forget to add this, so I've got caught by it several times.

It seems like this would be a reasonable default because, .svn/etc. folders aside, I would think non-java src/main/java files showing up in the jar/war would be expected and desirable more often than not.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Updated] (BUILDR-566) include non-java files in src/main/java as resources

Posted by "Peter Donald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Donald updated BUILDR-566:
--------------------------------

    Fix Version/s: 1.5
    
> include non-java files in src/main/java as resources
> ----------------------------------------------------
>
>                 Key: BUILDR-566
>                 URL: https://issues.apache.org/jira/browse/BUILDR-566
>             Project: Buildr
>          Issue Type: Wish
>          Components: Packaging
>    Affects Versions: 1.4.4
>            Reporter: Stephen Haberman
>            Priority: Minor
>             Fix For: 1.5
>
>
> For resource files that are closely related to a .java file, I often skip src/main/resources and put the file into src/main/java next to its corresponding .java file.
> This requires an easy but fairly boilerplate line of:
> project.resources.from(_('src/main/java')).exclude('*.java')
> In my buildfile. Besides reducing boilerplate, I always forget to add this, so I've got caught by it several times.
> It seems like this would be a reasonable default because, .svn/etc. folders aside, I would think non-java src/main/java files showing up in the jar/war would be expected and desirable more often than not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira