Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 88449 invoked from network); 12 Jan 2010 08:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 08:09:14 -0000 Received: (qmail 98314 invoked by uid 500); 12 Jan 2010 08:09:14 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 98242 invoked by uid 500); 12 Jan 2010 08:09:14 -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 98232 invoked by uid 99); 12 Jan 2010 08:09:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 08:09:13 +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 [217.188.43.21] (HELO fluorine.blau.de) (217.188.43.21) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 12 Jan 2010 08:09:06 +0000 Received: (qmail 12830 invoked from network); 12 Jan 2010 09:08:43 +0100 Received: from unknown (HELO exchange.blau.de.local) (172.20.0.20) by nl.blau.de with SMTP; 12 Jan 2010 09:08:43 +0100 Received: from exchange.blau.de.local ([172.20.0.20]) by exchange.blau.de.local ([172.20.0.20]) with mapi; Tue, 12 Jan 2010 09:08:43 +0100 From: =?iso-8859-1?Q?Peter_Schr=F6der?= To: "users@buildr.apache.org" Date: Tue, 12 Jan 2010 09:08:43 +0100 Subject: Re: buildr local_task Thread-Topic: buildr local_task Thread-Index: AcqTXnT/1Jh+OZm7SJ2e4EmoET92Ug== Message-ID: <533D322D-DF02-43EB-BE49-980979DCA981@blau.de> References: <4dcd15a91001111717p26a37cc9ncc47e2e17cc4a524@mail.gmail.com> In-Reply-To: <4dcd15a91001111717p26a37cc9ncc47e2e17cc4a524@mail.gmail.com> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 yeah, but there is a working example here: http://cwiki.apache.org/confluen= ce/display/BUILDR/How+to+create+and+use+an+extension+%28working+example+FOR= +REAL%21%29 boy, the apache wiki is sooo slow! Am 12.01.2010 um 02:17 schrieb Alex Boisvert: > Looks like a documentation bug. It should be Project.local_task :foo >=20 > http://buildr.apache.org/rdoc/classes/Buildr/Project.html#M000580 >=20 > alex >=20 >=20 > On Mon, Jan 11, 2010 at 8:05 PM, Nicholas Andrews wrote: >=20 >> Hi! >>=20 >> The quick start at: >>=20 >> http://buildr.apache.org/quick_start.html >>=20 >> gives an example using local_task :run to avoid having use a fully >> qualified name at the command line to run. I tried to do the same in >> my project: >>=20 >> # Let run be called without the fully qualified name >> local_task :run >>=20 >> define 'buildr_test' do >>=20 >> project.version =3D '0.0.1' >> compile.with 'org.scala-lang:scala-library:jar:2.7.7' >> compile.with 'org.scalanlp:scalala:jar:0.2.2-iesl' >> compile.with 'org.scala-tools.testing:specs:jar:1.6.0' >> compile.with 'cc.factorie:factorie:jar:0.8.0' >> project.group =3D GROUP >> manifest['Implementation-Vendor'] =3D COPYRIGHT >> package :jar >>=20 >> task :run =3D> :compile do >> system 'java -cp target/classes cc.factorie.example.LogicDemo1' >> end >> end >>=20 >> But this results in an error: >>=20 >> (in /export/projects/tto4/miniSCALE/NLIE/src/buildr_test, development) >> Buildr aborted! >> undefined method `local_task' for main:Object >> /export/projects/tto4/miniSCALE/NLIE/src/buildr_test/buildfile:23 >>=20 >> /usr/lib64/ruby/gems/1.8/gems/buildr-1.3.5/lib/buildr/core/application.r= b:398:in >> `raw_load_buildfile' >>=20 >> /usr/lib64/ruby/gems/1.8/gems/buildr-1.3.5/lib/buildr/core/application.r= b:218:in >> `load_buildfile' >>=20 >> /usr/lib64/ruby/gems/1.8/gems/buildr-1.3.5/lib/buildr/core/application.r= b:213:in >> `load_buildfile' >>=20 >> Am I doing something wrong? >>=20 >> Cheers, >> Nick >>=20