Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 66981 invoked from network); 7 Jul 2009 22:11:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 22:11:33 -0000 Received: (qmail 32278 invoked by uid 500); 7 Jul 2009 22:11:43 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 32206 invoked by uid 500); 7 Jul 2009 22:11:43 -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 32196 invoked by uid 99); 7 Jul 2009 22:11:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 22:11:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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 22:11:33 +0000 Received: from [192.168.1.3] (c173099.adsl.hansenet.de [213.39.173.99]) by mail.baseserver.net (Postfix) with ESMTP id 35D409B26E for ; Wed, 8 Jul 2009 00:11:10 +0200 (CEST) Subject: Re: buildr eclipse still uses M2_REPO var with different local repository From: Martin Grotzke To: users@buildr.apache.org In-Reply-To: <5582dd3b0907071447o70e7e64fubf2227f07a0b50e3@mail.gmail.com> References: <1246987622.27836.26.camel@localhost.localdomain.tld> <5582dd3b0907071045n45f3881cr4dfde03ff9c12af3@mail.gmail.com> <1247001526.2981.18.camel@localhost.localdomain.tld> <5582dd3b0907071447o70e7e64fubf2227f07a0b50e3@mail.gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-0MBnmhORsteSEg/oFf/+" Date: Wed, 08 Jul 2009 00:11:11 +0200 Message-Id: <1247004671.2981.25.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 --=-0MBnmhORsteSEg/oFf/+ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thanx for the hint! It works, but to me it does not seem like a clean solution but rather like a workaround. For one thing my collegues would think that buildr needs hacks for such things, on the other hand I'd like to learn how to do this the "right" way :) Do you have another suggestion? Or is it not as trivial as I think/hope? Thanx && cheers, Martin On Tue, 2009-07-07 at 14:47 -0700, Alex Boisvert wrote: > Given that repositories.local is global to a Buildr instance, I would > probably define a constant directly on the Eclipse module and use > monkey-patching to override it... only drawback here is that it would > generate a warning about overriding a constant. >=20 > e.g. > module Buildr > module Eclipse > M2_REPO_VAR =3D 'M2_REPO' > end > end >=20 >=20 > alex >=20 >=20 > On Tue, Jul 7, 2009 at 2:18 PM, Martin Grotzke > wrote: >=20 > > On Tue, 2009-07-07 at 10:45 -0700, Alex Boisvert wrote: > > > It would be fairly trivial to add, yes. Do you want to take a shot = at > > it? > > Yep, I'd like to have a look at it. Can you give me a hint where I can > > have a look to see s.th. similar (remember I'm a java user, new to > > ruby :))? > > > > What's the goal to have? S.th. like > > eclipse.using :repovar=3D>'MYPROJ_REPO'? > > > > Cheers, > > Martin > > > > > > > > > > alex > > > > > > > > > On Tue, Jul 7, 2009 at 10:27 AM, Martin Grotzke < > > > martin.grotzke@javakaffee.de> wrote: > > > > > > > Hi, > > > > > > > > we're changing the local repository (repositories.local) to "./lib"= . > > > > buildr eclipse generates the .classpath still using the M2_REPO > > > > variable. Is it possible to specify another variable name for this,= so > > > > that we could use some "PROJ_REPO" variable? > > > > > > > > Thanx && cheers, > > > > Martin > > > > > > > > > > --=-0MBnmhORsteSEg/oFf/+ 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) iEYEABECAAYFAkpTx/8ACgkQ7FvOl7Te+pb1EgCeKjQHCL3gWJUwgocgHSjbpAuR 9RwAoK3WKOFXEL1hHjZTtMh7/UqMdIGC =t3M0 -----END PGP SIGNATURE----- --=-0MBnmhORsteSEg/oFf/+--