Hi Niklaus, Yes, that's a bug -- we should exclude these types of files from dependencies.
Here's a quick hackish workaround for the time being, # Monkey-patch Javac compiler to exclude package-info.java from dependencies module Buildr module Compiler class Javac protected def compile_map(sources, target) map = super(sources, target) map.reject { |k, v| k =~ /package-info.java$/ } end end end end alex On Thu, May 3, 2012 at 12:39 PM, Niklaus Giger <niklaus.gi...@member.fsf.org > wrote: > Hi > > I stumbled in my project about various files, which where created just to > generate javadoc and had no valid class definition. > > My colleague argued that this behaviour is okay as documented under > > http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#sourcefiles > > Did anybody else stumble about this problem? > Or is there somewhere a simple way to exclude out package-info.java files > from > projecte.compile.sources? > > Thanks in advance for your help. > > Best regards > > -- > Niklaus Giger >