Return-Path: X-Original-To: apmail-buildr-commits-archive@www.apache.org Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35842DB1A for ; Sat, 6 Oct 2012 23:49:12 +0000 (UTC) Received: (qmail 31796 invoked by uid 500); 6 Oct 2012 23:49:12 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 31772 invoked by uid 500); 6 Oct 2012 23:49:12 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 31764 invoked by uid 500); 6 Oct 2012 23:49:12 -0000 Delivered-To: apmail-incubator-buildr-commits@incubator.apache.org Received: (qmail 31760 invoked by uid 99); 6 Oct 2012 23:49:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Oct 2012 23:49:12 +0000 Date: Sat, 6 Oct 2012 23:49:12 +0000 (UTC) From: "Peter Donald (JIRA)" To: buildr-commits@incubator.apache.org Message-ID: <1855563951.5646.1349567352145.JavaMail.jiratomcat@arcas> In-Reply-To: <2617673.283931296278323220.JavaMail.jira@thor> Subject: [jira] [Updated] (BUILDR-566) include non-java files in src/main/java as resources MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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