Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B31BEC07C for ; Fri, 4 May 2012 05:56:31 +0000 (UTC) Received: (qmail 43625 invoked by uid 500); 4 May 2012 05:56:31 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 43428 invoked by uid 500); 4 May 2012 05:56:27 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 43388 invoked by uid 99); 4 May 2012 05:56:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 05:56:26 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [62.179.121.31] (HELO fep11.mx.upcmail.net) (62.179.121.31) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 05:56:21 +0000 Received: from edge01.upcmail.net ([192.168.13.236]) by viefep11-int.chello.at (InterMail vM.8.01.05.04 201-2260-151-105-20111014) with ESMTP id <20120504055556.WJQ993.viefep11-int.chello.at@edge01.upcmail.net>; Fri, 4 May 2012 07:55:56 +0200 Received: from ng-hp.ngiger.dyndns.org ([84.74.15.91]) by edge01.upcmail.net with edge id 5hvv1j00U1xsp5Q01hvwJK; Fri, 04 May 2012 07:55:56 +0200 X-SourceIP: 84.74.15.91 X-Authenticated-Sender: niklaus.giger@hispeed.ch From: Niklaus Giger To: users@buildr.apache.org Subject: Re: Opened Ticket BUILDR-641: should allow java files without a class definition (e.g package-info.java) Date: Fri, 4 May 2012 07:55:45 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.6.5; x86_64; ; ) Cc: Alex Boisvert References: <201205032139.38413.niklaus.giger@member.fsf.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201205040755.46349.niklaus.giger@member.fsf.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi Alex Thanks a lot for your workaround! It is a nice workaround for the time being. Best regards Niklaus > 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 > > > 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 -- Niklaus Giger Wieshoschet 6 CH-8753 Mollis +41 (0)55 612 20 54 P +41 (0)77 473 02 59 Mobil