Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 54356 invoked from network); 27 Mar 2009 22:40:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2009 22:40:15 -0000 Received: (qmail 17557 invoked by uid 500); 27 Mar 2009 22:40:15 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 17529 invoked by uid 500); 27 Mar 2009 22:40:15 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 17519 invoked by uid 99); 27 Mar 2009 22:40:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 22:40:15 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of arkin@intalio.com designates 74.125.46.29 as permitted sender) Received: from [74.125.46.29] (HELO yw-out-2324.google.com) (74.125.46.29) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 22:40:07 +0000 Received: by yw-out-2324.google.com with SMTP id 2so758704ywt.17 for ; Fri, 27 Mar 2009 15:39:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4c1d6a900903271536ja2e7f90x961d3af3a497f28a@mail.gmail.com> References: <4c1d6a900903271442w6d678a9eld3976c502c2e28a6@mail.gmail.com> <3de5d7d20903271531p4b3ff8c2k127a31724ae6c2e@mail.gmail.com> <4c1d6a900903271536ja2e7f90x961d3af3a497f28a@mail.gmail.com> Date: Fri, 27 Mar 2009 15:39:31 -0700 Received: by 10.231.15.74 with SMTP id j10mr585711iba.30.1238193586204; Fri, 27 Mar 2009 15:39:46 -0700 (PDT) Message-ID: <3de5d7d20903271539l73a21eb1x7b2dafb192df03a4@mail.gmail.com> Subject: Re: question about Test task From: Assaf Arkin To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=00221532cba0de709f0466216883 X-Virus-Checked: Checked by ClamAV on apache.org --00221532cba0de709f0466216883 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Mar 27, 2009 at 3:36 PM, Alexis Midon wrote: > I use the project() method to declare the dependency. Then yes. project("mod1") is the same as project("mod1").packages. Assaf > > > > define "hello-dolly" do > > define "mod1" do > package(:jar) > end > > define "mod2" do > compile.with project("mod1") > package(:jar) > end > > end > > Alexis > > > On Fri, Mar 27, 2009 at 3:31 PM, Assaf Arkin wrote: > > > On Fri, Mar 27, 2009 at 2:42 PM, Alexis Midon > > wrote: > > > > > > > > Hi guys, > > > > > > I have attached a simple HelloWorld project, with 2 modules, mod2 > depends > > > on mod1. > > > When I test mod2, mod1 gets packaged. is that the expected behavior? > I'd > > > say no. > > > > > > Does mod2 have mod1.jar as a classpath dependency? > > > > Assaf > > > > > > > > > > > > > ~/p/hello-dolly$buildr clean test > > > (in /home/alexis/p/hello-dolly, development) > > > Cleaning hello-dolly > > > Testing hello-dolly > > > Compiling hello-dolly:mod1 into > > > /home/alexis/p/hello-dolly/mod1/target/classes > > > Packaging hello-dolly-mod1-1.0.0.jar > > > Compiling hello-dolly:mod2 into > > > /home/alexis/p/hello-dolly/mod2/target/classes > > > Testing hello-dolly:mod1 > > > Testing hello-dolly:mod2 > > > Compiling hello-dolly:mod2:test into > > > /home/alexis/p/hello-dolly/mod2/target/test/classes > > > Running tests in hello-dolly:mod2 > > > Trying to override old definition of datatype junit > > > > > > > > > Alexis > > > > > > --00221532cba0de709f0466216883--