buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Pyatigorskiy <ata...@gmail.com>
Subject Re: NoMethodError : undefined method `java' for Buildr::Eclipse::Java:Module
Date Wed, 23 Mar 2011 18:14:03 GMT
One more thing: you don't want to call your project version VERSAO,
use standard VERSION_NUMBER instead. Buildr depends on that in a few
places, could become tricky afterwards =)

On Wed, Mar 23, 2011 at 3:24 AM, Geraldo Lopes de Souza
<geraldo.ls@gmail.com> wrote:
> 2011/3/22 Geraldo Lopes de Souza <geraldo.ls@gmail.com>
>
>> Hi,
>>
>> I'm getting NoMethodError : undefined method `java' for
>> Buildr::Eclipse::Java:Module while trying to execute Java.java.
>>
>> ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
>> buildr (1.4.5)
>>
>> Thanks for help
>>
>> buildfile below
>>
>> require 'buildr'
>> VERSAO = '0.1'
>>
>> GWT = 'com.google.gwt:gwt-user:jar:2.2.0'
>> GWT_DEV = 'com.google.gwt:gwt-dev:jar:2.2.0'
>>
>> repositories.remote << "http://repo1.maven.org/maven2/"
>>
>> layout = Layout.new
>>
>> layout[:source, :main, :java] = "src"
>> layout[:source, :test, :java] = "test"
>> layout[:target, :main, :classes] = "war/WEB-INF/classes"
>> layout[:target, :main] = 'war'
>> layout[:target] = 'war'
>> layout[:target, :test, :classes] = "test-classes"
>>
>> define 'clinica', :layout => layout do
>>  project.version = VERSAO
>>  project.group = 'group'
>>  compile.options.target = '1.6'
>>
>>  compile.with(GWT)
>>
>> task :gwtc do
>>    puts "GWT Compile"
>>    classpath = [GWT, GWT_DEV, "src/app/client", "src/app/shared"]
>>    Java.java  :main => ["com.google.gwt.dev.Compiler"],
>>               :classpath => classpath,
>>               :java_args => ["-Xmx256M"]
>>  end
>>
>>  task :build => :gwtc
>> end
>

Mime
View raw message