Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 38113 invoked from network); 7 Jul 2009 21:51:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 21:51:20 -0000 Received: (qmail 6976 invoked by uid 500); 7 Jul 2009 21:51:30 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 6904 invoked by uid 500); 7 Jul 2009 21:51:30 -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 6894 invoked by uid 99); 7 Jul 2009 21:51:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 21:51:30 +0000 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: local policy) Received: from [80.190.253.131] (HELO mail.baseserver.net) (80.190.253.131) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 21:51:19 +0000 Received: from [192.168.1.3] (c214243.adsl.hansenet.de [213.39.214.243]) by mail.baseserver.net (Postfix) with ESMTP id C098A9B27C for ; Tue, 7 Jul 2009 23:50:55 +0200 (CEST) Subject: Re: Tests not executed with eclipse bulding automatically - how to set different output folder for eclipse From: Martin Grotzke To: users@buildr.apache.org In-Reply-To: <5582dd3b0907071422i6991cc0fg4433548f0f672852@mail.gmail.com> References: <1246986658.27836.20.camel@localhost.localdomain.tld> <5582dd3b0907071050j613dd861s7f1a995410388012@mail.gmail.com> <1247000188.2981.8.camel@localhost.localdomain.tld> <5582dd3b0907071422i6991cc0fg4433548f0f672852@mail.gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-SR1HyfEvawPbOM1NslvU" Date: Tue, 07 Jul 2009 23:50:57 +0200 Message-Id: <1247003457.2981.22.camel@localhost.localdomain.tld> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 (2.26.2-1.fc11) X-Virus-Checked: Checked by ClamAV on apache.org --=-SR1HyfEvawPbOM1NslvU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I just tested this and it seems fine (in the buildfile I added options.test =3D :all) - great! However, I don't understand exactly why this does the trick. The website says: "As you probably noticed, Buildr will stop your build at the first test that fails. We think it=E2=80=99s a good idea, except when it=E2=80=99s not= . If you=E2=80=99re using a continuous build system, you=E2=80=99ll want a report of all the fa= iled tests without stopping at the first failure. To make that happen, set the environment variable test to =E2=80=9Call=E2=80=9D, or the Buildr optio= ns.test option to :all." To me this does not explain, why it also solves our issue... Can you give some more explanation? Thanx && cheers, Martin On Tue, 2009-07-07 at 14:22 -0700, Alex Boisvert wrote: > One idea: You can force testing with "buidlr test=3Dall" if that's what = you > want. >=20 > alex >=20 >=20 > On Tue, Jul 7, 2009 at 1:56 PM, Martin Grotzke > wrote: >=20 > > Hi Alex, > > > > sorry I was not specific enough. What I meant is that we want to have > > different output folders for eclipse and buildr. > > > > So that buildr builds to what it does, and the output of eclipse goes t= o > > e.g. "eclipse-bin" (both for classes, tests and resources). It just mus= t > > not build to the target dir(s) that buildr uses for the check, if tests > > must be executed. > > > > Again our original issue: > > > > 1 Write a test (that is ok) with eclipse, execute tests with buildr > > -> test fails > > 2 Change the test with eclipse (having "build automatically" set) so > > that it fails, execute tests with buildr > > -> tests are not executed > > > > If eclipse does not have the "build automatically" set this issue does > > not occur, but buildr executes the tests. I asume, that (in 2) the > > compiled classes (by eclipse) are just up to date with the sources and > > that is the reason why buildr does not run the tests. > > > > Thanx && cheers, > > Martin > > > > > > On Tue, 2009-07-07 at 10:50 -0700, Alex Boisvert wrote: > > > Hi Martin, > > > > > > I'm not sure I'm following.... the Eclipse task already generates > > different > > > output folders for classes/tests. > > > > > > e.g. > > > > > > > > > > > kind=3D"src" path=3D"src/main/resources"/> > > > > output=3D"target/test/classes" > > > kind=3D"src" path=3D"src/test/java"/> > > > > > output=3D"target/test/resources" kind=3D"src" path=3D"src/test/resour= ces"/> > > > > > > You could explain with a example highlighting current vs desired > > behavior? > > > > > > alex > > > > > > > > > On Tue, Jul 7, 2009 at 10:10 AM, Martin Grotzke < > > > martin.grotzke@javakaffee.de> wrote: > > > > > > > Hi, > > > > > > > > at first: we're just starting a new project here and it's the first= for > > > > our company we're building with buildr - I'm very happy! :) > > > > > > > > Now my question: is it possible to specify a different output folde= r > > for > > > > eclipse? > > > > > > > > We need this as we're using eclipse with "Build automatically". Thi= s > > > > causes the effect, that tests that once ran successfully are not > > > > executed again, even if classes files or tests are changed. Turning= off > > > > "build automatically" or a "clean" resolves this issue. However, we > > > > still want to have an automatic build in eclipse, so this is not th= e > > > > preferred solution. > > > > > > > > Is there another solution for this (e.g. specifying different outpu= t > > > > folder for eclipse)? > > > > > > > > Thx && cheers, > > > > Martin > > > > > > > > > > --=20 Martin Grotzke http://www.javakaffee.de/blog/ --=-SR1HyfEvawPbOM1NslvU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkpTw0EACgkQ7FvOl7Te+pbP7wCfanErE9qE8F0jJPWfuSHZ2zUT qPIAoKiqQVIx7iSXDV8CRC9gNeg+/fno =F8/3 -----END PGP SIGNATURE----- --=-SR1HyfEvawPbOM1NslvU--