Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 4732 invoked from network); 5 Aug 2008 23:45:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 23:45:39 -0000 Received: (qmail 14566 invoked by uid 500); 5 Aug 2008 23:45:38 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 14536 invoked by uid 500); 5 Aug 2008 23:45:38 -0000 Mailing-List: contact buildr-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-user@incubator.apache.org Delivered-To: mailing list buildr-user@incubator.apache.org Received: (qmail 14525 invoked by uid 99); 5 Aug 2008 23:45:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 16:45:38 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antoine.contal@gmail.com designates 209.85.200.174 as permitted sender) Received: from [209.85.200.174] (HELO wf-out-1314.google.com) (209.85.200.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 23:44:43 +0000 Received: by wf-out-1314.google.com with SMTP id 27so2870544wfd.21 for ; Tue, 05 Aug 2008 16:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=YkDkQtLfSElA+1Rqy6i7bpdvCKBAK7dEqf+CQHZdKaE=; b=koJI8EA0nIPr3hLyy4nWOQaVa55dvymlcpcRcrr+8t5tW6+LuQEQdgz40/wOSJPg4g REPGZ9SUPlfwklDXOqIwIGSqvSjNb/5ywglx+GTfYj71+xCdJTEGgYw40kUwUmCAyqQl DYxMxF6vnK7PSyvtBqx0QXm85PrvnyL68b4F0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=W5bH57afXel621de80//kSM1LqWOOtpDdbS17Zfo33+HcQPQ3dZe+Kgp/YmNLLnvzJ nYNiJmVpOucN9Hnkwy0nQaXGJAOTA2hQxGE606qecnfR47jU7d+Zd6usUxg8EiEZJCfZ mcS9EZAI71Onhh7kpjpbNeS6HB6DAs6Je2FaA= Received: by 10.142.218.4 with SMTP id q4mr5678943wfg.262.1217979910543; Tue, 05 Aug 2008 16:45:10 -0700 (PDT) Received: by 10.142.191.16 with HTTP; Tue, 5 Aug 2008 16:45:10 -0700 (PDT) Message-ID: Date: Wed, 6 Aug 2008 01:45:10 +0200 From: lacton Sender: antoine.contal@gmail.com To: buildr-user@incubator.apache.org Subject: Re: [buildr] resources under eclipse In-Reply-To: <5582dd3b0808051604q3ec1a0eg3bd1eb62c1f9c68c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3de5d7d20808051131ja064cd6o4ffb0e186086082a@mail.gmail.com> <5582dd3b0808051604q3ec1a0eg3bd1eb62c1f9c68c@mail.gmail.com> X-Google-Sender-Auth: aab5181a7e58c609 X-Virus-Checked: Checked by ClamAV on apache.org I created issue BUILDR-123. https://issues.apache.org/jira/browse/BUILDR-123 On Wed, Aug 6, 2008 at 1:04 AM, Alex Boisvert wrote: > This is clearer to me now. I think we should treat this as a bug of the > Eclipse task. > > alex > > > > On Tue, Aug 5, 2008 at 3:46 PM, lacton wrote: > >> Assaf, >> >> I think there was a misunderstanding. From your answer, I guess you >> think I'm questioning the reason for separating target/resources and >> target/classes. I'm not and I fully support this separation. >> >> My question is exactly the opposite. I'm wondering why the eclipse >> task is not doing the same separation as buildr does. >> >> Here's an example. >> >> = What the eclipse task generates now = >> >> > excluding="**/.svn/|**/CVS/"/> >> > excluding="**/.svn/|**/CVS/"/> >> > output="target/test/classes" excluding="**/.svn/|**/CVS/"/> >> > output="target/test/classes" excluding="**/.svn/|**/CVS/"/> >> > path="M2_REPO/jmock/jmock/1.2.0/jmock-1.2.0.jar"/> >> >> >> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/> >> >> >> = What I think would be more consistent = >> >> > excluding="**/.svn/|**/CVS/"/> >> > output="target/resources" excluding="**/.svn/|**/CVS/"/> >> > output="target/test/classes" excluding="**/.svn/|**/CVS/"/> >> > output="target/test/resources" excluding="**/.svn/|**/CVS/"/> >> > path="M2_REPO/jmock/jmock/1.2.0/jmock-1.2.0.jar"/> >> >> >> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/> >> >> >> What do you think of that? >> >> On Tue, Aug 5, 2008 at 8:31 PM, Assaf Arkin wrote: >> > On Tue, Aug 5, 2008 at 10:41 AM, lacton >> wrote: >> >> When building with buildr, resources are copied to target/resources or >> >> target/test/resources. Yet, when running the eclipse task, the same >> >> resources go to target/classes or target/test/classes. >> >> >> >> What are the reasons for this difference? >> > >> > Putting resources inside src/main/java doesn't work too well, it's >> > hard to tell whether an HTML page or image is part of the >> > documentation (used by javadoc), or resource that should be copied. >> > So package(:jar) collects files from both target/classes and >> > target/resources. >> > >> > But resources are not tied to Java specifically, while target/classes >> > is specific to the JDK compilers. A project can contain nothing but >> > resources, or combine resources with some other binary target (not >> > target/classes). That's the rational for separating target/resources >> > from target/[binary], where [binary] depends on the language you're >> > using. >> > >> > If we wanted to route resources to target/classes, it would help to >> > rephrase that as "would it work better if everything gets generated >> > and packaged from target/code". I'm using target/code because it >> > helps frame the problem independently of Java, which is just one >> > language. The alternative is to have multiple target directories, >> > which is what we have right now. >> > >> > Assaf >> > >> >> >> >> Would someone be dissatisfied if I submitted a patch that would make >> >> buildr and eclipse more consistent about this? >> >> >> >> -- >> >> Lacton >> >> >> > >> >> -- >> Lacton >> > -- Lacton