Skip to content

Instantly share code, notes, and snippets.

@daniperez
Created January 13, 2012 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniperez/1605072 to your computer and use it in GitHub Desktop.
Save daniperez/1605072 to your computer and use it in GitHub Desktop.
Buildr eclipse .classpath bug
repositories.remote << 'https://repository.jboss.org/nexus/content/groups/public'
repositories.remote << 'http://repo1.maven.org/maven2/'
define 'foo' do
eclipse.natures :java
compile.with transitive('org.drools:knowledge-api:jar:5.4.0.Beta1')
end
import java.util.Vector;
public class Foo {
// 'buildr eclipse' will add the jre container entry at the end of
// .classpath and Drools jars contain already a compiler (apparently
// not implementing java generics). Eclipse won't be able to compile
// this line.
private Vector<int> bar = new Vector<int>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment