buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geraldo Lopes de Souza <geraldo...@gmail.com>
Subject Re: NoMethodError : undefined method `java' for Buildr::Eclipse::Java:Module
Date Wed, 23 Mar 2011 00:24:46 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message