Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 33522 invoked from network); 17 Sep 2008 01:53:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2008 01:53:55 -0000 Received: (qmail 5783 invoked by uid 500); 17 Sep 2008 01:53:52 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 5768 invoked by uid 500); 17 Sep 2008 01:53:52 -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 5757 invoked by uid 99); 17 Sep 2008 01:53:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2008 18:53:52 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of arkin@intalio.com does not designate 74.125.78.147 as permitted sender) Received: from [74.125.78.147] (HELO ey-out-1920.google.com) (74.125.78.147) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2008 01:52:51 +0000 Received: by ey-out-1920.google.com with SMTP id 4so1667459eyg.54 for ; Tue, 16 Sep 2008 18:53:03 -0700 (PDT) Received: by 10.86.27.9 with SMTP id a9mr1419241fga.57.1221616383064; Tue, 16 Sep 2008 18:53:03 -0700 (PDT) Received: by 10.86.25.1 with HTTP; Tue, 16 Sep 2008 18:53:03 -0700 (PDT) Message-ID: <3de5d7d20809161853y532bdce3j99c878f188944ef0@mail.gmail.com> Date: Tue, 16 Sep 2008 18:53:03 -0700 From: "Assaf Arkin" To: buildr-user@incubator.apache.org, joakim.ohlrogge@agical.com Subject: Re: Problems with specs In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5582dd3b0809121506m2762c3c4qc2a90a234b42777f@mail.gmail.com> <3de5d7d20809122142s2b507ffpeb4684358db17db@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Sep 13, 2008 at 7:03 AM, Joakim Ohlrogge wrote: > Thanks for the pointer! > > You really made it easy to try the latest and greatest using GIT, I > had no idea it was this easy. The _buildr script was simple and > effective and now I know that I will be /pleasantly/ surprised by the > next version of buildr. It works like charm and my immediate problem > will be solved by the next version. > > I blogged about my experience here: > http://johlrogge.wordpress.com/2008/09/13/buildr-keeping-up-with-the-late= st-and-greatest/ Thanks. Assaf > > I hope that it helps someone :) > > Thanks for your help! > /J > > > > > > On Sat, Sep 13, 2008 at 6:42 AM, Assaf Arkin wrote: >> On Fri, Sep 12, 2008 at 3:06 PM, Alex Boisvert wr= ote: >>> Yes, the ScalaTest module needs to be monkey-patched early to add JUnit= due >>> to the way the test framework classes are loaded during bootstrap. >> >> First you want to test it against the latest changes (or be >> unpleasantly surprised when 1.3.3 ships): >> http://github.com/vic/buildr/commit/018769ab28f5b7f8085138eb748fdb9d3962= 252d >> >> Assaf >> >> >>> >>> There were was a discussion about making this cleaner in 1.3: >>> http://groups.google.com/group/buildr-talk/browse_thread/thread/4ad0ef8= 79e3a5313?fwc=3D1 >>> >>> but I don't know if anything came out of it. >>> >>> Assaf? >>> >>> >>> >>> On Fri, Sep 12, 2008 at 2:17 PM, Joakim Ohlrogge >>> wrote: >>> >>>> Hi all, >>>> >>>> I am new to builder and am in a bit of trouble. I am trying scala >>>> specs in buildr 1.3.2 and it works fine until I want to make the spec >>>> runnable with JUnit. >>>> When I add >>>> >>>> class PublishSiteGraphSpecTest extends JUnit4(PublishSiteGraphSpec) >>>> >>>> To my spec I get: >>>> >>>> NoClassDefFoundError: junit/framework/Test >>>> rake aborted! >>>> junit/framework/Test >>>> >>>> from buildr. >>>> >>>> I tried to add junit to test.with but it didn't work. I figured out >>>> that my problem was related to the class-path of ScalaTest in >>>> test_framework.rb and by adding JUnit::REQUIRES to the present list of >>>> requirements, like this: >>>> >>>> # ScalaTest dependencies >>>> DEPENDS =3D ["org.scalatest:scalatest:jar:#{VERSION}"] + >>>> JMock::REQUIRES + >>>> ScalaSpecs::REQUIRES + >>>> ScalaCheck::REQUIRES + >>>> JUnit::REQUIRES >>>> >>>> It works. >>>> >>>> I bet there is a better way, I tried to open the class in ~/buildr.rb >>>> and change the constant but I just get warnings that I'm trying to >>>> change it. I also noticed that the buildr.rb is not picked up if I put >>>> it in the same directory as my buildfile (the homepage says that >>>> buildr will look for a buildr.rb in the build-directory and I assumed >>>> that the build-directory is the same as the directory with the >>>> buildfile?) >>>> >>>> What is the best way to make this kind of patches? I would really like >>>> to be able to make these changes by just checking in a buildr.rb >>>> together with my buildfile or something comparably easy. Especially >>>> since I noticed that you have to be root to change gem-files in >>>> ubuntu. >>>> >>>> I'm probably overlooking something simple and I can't seem to make >>>> google dig up the correct information for me so I thought I'd ask >>>> here. >>>> >>>> Best regards! >>>> /Joakim Ohlrogge >>>> >>> >> > > > > -- > ----------------------------------------------------- > Joakim Ohlrogge > Agical AB > V=E4sterl=E5nggatan 79, 2 tr > 111 29 Stockholm, SWEDEN > > Mobile: +46-708-754004 > Blog: johlrogge.wordpress.com > E-mail: joakim.ohlrogge@agical.se >