Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 42235 invoked from network); 4 Jul 2000 00:00:10 -0000 Received: from smtp.mail.yahoo.com (128.11.68.32) by locus.apache.org with SMTP; 4 Jul 2000 00:00:10 -0000 Received: from h206-80-45-18.ncal.verio.net (HELO pissaro) (206.80.45.18) by smtp.mail.yahoo.com with SMTP; 4 Jul 2000 00:00:10 -0000 X-Apparently-From: Message-ID: <005b01bfe54b$2dc69480$122d50ce@ibscorp.com> From: "Vitaly Stulsky" To: References: Subject: Re: WIBNI for Javac Task Date: Mon, 3 Jul 2000 17:02:44 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > The issue is that Erich's directory structure does not match his package > structure. I am not sure this is a good idea. When javac (the tool, not the > task) is compiling a class and it cannot find a class upon which the current > class depends, it attempts to find a source file, mapping the package > structure to the sourcepath. Have a look at "SEARCHING FOR TYPES" in the > Javac documentation. In all our projects, our source directory structure and > package structure match. > I've thought about this problem too. From my point of view it is neccesssary to add sourcepath attribute to the javac taskdef. I've done it for my local version of ant. There are few benefits: 1) it is possible to enumerate not all files in one direcory, but select necessary packages from it and compile them (e.g. we had some kind of utility classes repository and I included packages from this repository into my project, cause I didn't need all utility classes in my final distribution). 2) it's easy to locate class file even if user specify 'incorrect' path to sources (e.g he/she specifies path not to the first package 'org', but to directory under the first package 'org'). Any ideas? Vitaly __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com