buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <alex.boisv...@gmail.com>
Subject Re: Eclipse web projects
Date Wed, 08 Sep 2010 20:01:08 GMT
(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 <travis.jensen@gmail.com>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???**
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message