Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 88954 invoked from network); 16 Feb 2005 12:17:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Feb 2005 12:17:26 -0000 Received: (qmail 46331 invoked by uid 500); 16 Feb 2005 12:17:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 46290 invoked by uid 500); 16 Feb 2005 12:17:21 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 46274 invoked by uid 99); 16 Feb 2005 12:17:20 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from gate.corvil.net (HELO corvil.com) (213.94.219.177) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 16 Feb 2005 04:17:20 -0800 Received: from [172.18.1.171] (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id j1GCHGwS086622 for ; Wed, 16 Feb 2005 12:17:16 GMT (envelope-from peterreilly@apache.org) Message-ID: <42133A59.6030402@apache.org> Date: Wed, 16 Feb 2005 12:19:37 +0000 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Error not detected in ANT 1.6.1 compile task References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ahmed Ounaissa wrote: >Thx to all for your answers. > > If summarize: > 1. I do not have to respect the package structure for my sources (is this compliant to Java Spec ?). > > You do have to for the ant task as it uses the relative directory structure to figure out which files have been compiled, however ant does not have the code to inspect the java source files to see if the package names are what is expected, > 2. If -d is supplied to the compiler (javac) it disregards possible mismatches between package class statement and compilation unit location. > (source location is supplied in the ant xml build file). > > Side question: Loading same sources in Eclipse raises the error. > >Thx >/Ahmed > >-----Original Message----- >From: Stefan Bodewig [mailto:bodewig@apache.org] >Sent: mercredi 16 f�vrier 2005 12:51 >To: user@ant.apache.org >Subject: Re: Error not detected in ANT 1.6.1 compile task > > >On Wed, 16 Feb 2005, Peter Reilly wrote: > > > >>To clarify, >>this is normal commandline and ant task javac behaviour. >> >> > >Even more than that. > >I once worked on a(n open source) project[1] that kept all source >files in the same directory, even though they belonged to different >Java packages. They wanted it to be that way ("I won't let the >programming language tell me how I structure my workspace"). > >Stefan > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org