apache/buildr — pull request #3 by daniperez (2012-01-13 08:38:01+00:00)
Title: JRE container entries declared before user sources and dependencies.

See https://gist.github.com/1605072 in order to reproduce the bug. In summary, if you use Drools, it already ships a jre container. Since the user's dependencies are written to '.classpath' first, Drools container will be taken, instead of Eclipse's. In my case, it produces undesired effects like disabling Java Generics.

This change fixes the problem... I hope it doesn't break anything else :-) I'm not very much into Eclipse classpath stuff.