Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 75259 invoked from network); 4 Nov 2008 13:40:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Nov 2008 13:40:45 -0000 Received: (qmail 21392 invoked by uid 500); 4 Nov 2008 13:40:50 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 21352 invoked by uid 500); 4 Nov 2008 13:40:50 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 21341 invoked by uid 99); 4 Nov 2008 13:40:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 05:40:50 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [12.11.148.84] (HELO irp2.ptc.com) (12.11.148.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 13:39:32 +0000 X-IronPort-AV: E=Sophos;i="4.33,543,1220241600"; d="scan'208,217";a="28058139" Received: from unknown (HELO HQ-EX3FE2.ptcnet.ptc.com) ([132.253.201.63]) by irp2.ptc.com with ESMTP; 04 Nov 2008 08:40:12 -0500 Received: from [132.253.48.30] ([132.253.48.30]) by HQ-EX3FE2.ptcnet.ptc.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 4 Nov 2008 08:40:12 -0500 Message-ID: <491050BC.9070804@ptc.com> Date: Tue, 04 Nov 2008 07:40:12 -0600 From: Jess Holle User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Ant Developers List Subject: Re: javac task problem in Java 6 References: <22ac04340810301122v241cd885oc61d6a4b45a008d9@mail.gmail.com> <22ac04340811040207lb2a47fes9ffcb1c4014350b9@mail.gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------020606010706080003060802" X-OriginalArrivalTime: 04 Nov 2008 13:40:12.0389 (UTC) FILETIME=[DC906150:01C93E82] X-Virus-Checked: Checked by ClamAV on apache.org --------------020606010706080003060802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I am rather certain this is a javac bug -- though it would be good to /prove /that from a javac command line so as to get some focus on the real issue here. I believe Sun should take this particular issue seriously. We've seen this before where A depends on B which /internally/ depends upon C and then suddenly one has to have C around to compile A. That extends compilation dependencies across decoupling points one designs in and breaks library opacity / encapsulation. This whole issue needs to be taken seriously and nailed by Sun. It impacts Ant, of course, but this in turn impacts NetBeans. It also impacts everything that uses their compiler rather than JDT. Overall this issue should not be tolerated. -- Jess Holle Stefan Bodewig wrote: > On Tue, 4 Nov 2008, Sergey Bondarenko wrote: > > >> Regarding compilation issue, it looks like Ant javac task does not >> handle "includes" and "excludes" attributes correctly when it is >> used with JDK 6. But it works properly with JDK 5. >> > > Uhm, no. > > includes/excludes controls which source files are being sent to > javac's command line. If javac decides that it needs to compile > additional classes that it can find inside the source path, then there > is nothing that Ant can do. > > Inside the manual page for the javac task you will find (under > examples): > > ,---- > | If you wish to compile only files explicitly specified and disable > | javac's default searching mechanism then you can unset the sourcepath > | attribute: > | > | | destdir="${build}" > > | > | > | > | > | That way the javac will compile all java source files under "${src}" > | directory but skip the examples. The compiler will even produce errors > | if some of the non-example files refers to them. > `---- > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > > --------------020606010706080003060802--