From users-return-2682-apmail-buildr-users-archive=buildr.apache.org@buildr.apache.org Wed Sep 08 20:01:35 2010 Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 36654 invoked from network); 8 Sep 2010 20:01:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 20:01:34 -0000 Received: (qmail 12273 invoked by uid 500); 8 Sep 2010 20:01:34 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 12187 invoked by uid 500); 8 Sep 2010 20:01:34 -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 12178 invoked by uid 99); 8 Sep 2010 20:01:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 20:01:34 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.boisvert@gmail.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qy0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 20:01:30 +0000 Received: by qyk1 with SMTP id 1so5570893qyk.17 for ; Wed, 08 Sep 2010 13:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=bovH7zLaViGvhyoyFKmjfMhJXU6TMnkaj9FyUMb0HQ4=; b=pbp2rJU6s3epYScjuoLqsDNyk30ZaX5SbB949l7ra8AiOTsYT4ZzdANtSVf16H76GA qYtN2bt2XEGPX8E3H9Uks3C4sQLUvefSBOM8z4+RSxcDR6LE/Hts+/Fxn4dIVPt0+non NcCPQqj5vf+YjBc5KCJPoEDDBW7Qmyz+pArzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ZGQPxYQNqSYZxIh0Z15kjaS1e55jupgtR3I5BJUvVlKVYRL0g7uoIGicBIrx18qDWK Ns+HyZdlO1WKa9hjuSJCWHE/8WjJ5Y20YYpLwej1jK2k5lKinRF4yI3BEzNwRCdrZHLn k+NeSBvgTroUFsRULy8VvBTougYe6S1jfeh+Q= MIME-Version: 1.0 Received: by 10.224.46.15 with SMTP id h15mr208653qaf.162.1283976068944; Wed, 08 Sep 2010 13:01:08 -0700 (PDT) Received: by 10.229.42.76 with HTTP; Wed, 8 Sep 2010 13:01:08 -0700 (PDT) In-Reply-To: References: Date: Wed, 8 Sep 2010 13:01:08 -0700 Message-ID: Subject: Re: Eclipse web projects From: Alex Boisvert To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=00151748db027d5645048fc4f9a0 --00151748db027d5645048fc4f9a0 Content-Type: text/plain; charset=ISO-8859-1 (Resending since I got a bounce) Hi Travis, Looks like the doc is incorrect, you shouldn't use curly braces when calling classpath_variables, e.g. eclipse.classpath_variables :KIWI_SRC => 'lib' I'll fix the rdoc. alex On Tue, Sep 7, 2010 at 11:51 AM, Travis Jensen wrote: > I'm trying to build an Eclipse web project out of a Buildr war package. I > have some jars in a lib folder that I need to include in the classpath that > I would like to turn into an Eclipse resource variable. This is my project > definition in my buildfile: > > define "myserver" do > eclipse.natures ECLIPSE_WEB_NATURES > eclipse.builders ECLIPSE_WEB_BUILDERS > eclipse.classpath_variables { :KIWI_SRC => 'lib' } > > compile.with project('mylib').package, MAIL_APIS, SERVLET_API > > package(:war).libs += project('mylib').compile.dependencies > package(:war) > end > > When I run "buildr package", I get this error: > > SyntaxError : /Users/travis/Dropbox/src/clicklock/kiwi/src/buildfile:45: > syntax error, unexpected tASSOC, expecting '}' > eclipse.classpath_variables { :LIBS_SRC => 'lib' } > ^ > > /Library/Ruby/Gems/1.8/gems/buildr-1.4.1/lib/buildr/core/application.rb:398:in > `raw_load_buildfile' > > /Library/Ruby/Gems/1.8/gems/buildr-1.4.1/lib/buildr/core/application.rb:218:in > `load_buildfile' > > /Library/Ruby/Gems/1.8/gems/buildr-1.4.1/lib/buildr/core/application.rb:213:in > `load_buildfile' > > What am I doing wrong with the classpath_variables? Is there anything else > I'm missing or doing wrong? > > Thanks. > > tj > > *Travis Jensen* > *** > *Read the Software Maven @ http://softwaremaven.innerbrane.com/ > Read my LinkedIn profile @ http://www.linkedin.com/in/travisjensen > Read my Twitter mumblings @ http://twitter.com/SoftwareMaven > Send me email @ travis.jensen@gmail.com > > **What kind of guy calls himself the Software Maven???** > --00151748db027d5645048fc4f9a0--