Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 62102 invoked from network); 23 Jul 2002 21:58:39 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 Jul 2002 21:58:39 -0000 Received: (qmail 12670 invoked by uid 97); 23 Jul 2002 21:58:53 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 12654 invoked by uid 97); 23 Jul 2002 21:58:53 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 12642 invoked by uid 98); 23 Jul 2002 21:58:52 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Problems with in javac Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Tue, 23 Jul 2002 14:58:08 -0700 Message-ID: <6B504A36CFE60F40BAF99C001D1BC029C77E32@ADFDEX01.C-IV.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems with in javac Thread-Index: AcIykxZkDYaLZAZyTNWl+q7OoUUjWwAAK9AQ From: "Milind Nirgun" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Nope. Same results. I instantiated File3 object in File1. But only = File3.java was compiled. I also constructed the File1 object in File3, = and I got a compilation error while File3.java was compiled - saying = could not resolve symbol File1!=20 Does that help? -----Original Message----- From: Nathan Paris [mailto:nathan.paris@laurelhillgis.com] Sent: Tuesday, July 23, 2002 2:47 PM To: 'Ant Users List' Subject: RE: Problems with in javac I think you need File1.java to do more then just import File3.java. If you construct the class File3 in File1 I think you will have the same results I am having. Let me know. Nathan -----Original Message----- From: Milind Nirgun [mailto:NirgunM@C-IV.org]=20 Sent: Tuesday, July 23, 2002 3:43 PM To: Ant Users List Subject: RE: Problems with in javac Ant only passes those files that need to be compiled and are not in the exclusion list to javac. I tried out an example based on Nathan's problem and I got perfect results as expected. My build script is : =20 =20 =20 =20 I ran the above script with a directory structure as follows: \srcdir |--com |----package1 | |---File1.java (imports File3) | |---File3.java=20 |----package2 |---File2.java Results: The files File1.java & File2.java never ever get compiled. Every time I run with target clean or touch File3.java, only the File3.java gets compiled. And that is expected behaviour. So Nathan check your directory structure and script again. Try out the above if you still have doubts. -Milind -----Original Message----- From: Diane Holt [mailto:holtdl@yahoo.com] Sent: Tuesday, July 23, 2002 2:13 PM To: Ant Users List Subject: RE: Problems with in javac --- Nathan Paris wrote: > The ${srcDir} variable is src/ . Inside src/ I have the packages: >=20 > src/com/package1 > src/com/package2 >=20 > So my src variable is where the package-structure is located, but > doesn't include the package structure. So what I am doing should work, > right? Java compilers will compile whatever files they need, if they can find them (which, since these two files live in the same source path as the other files you're compiling, it will). So if these two are referenced by the files you do want to compile, the compiler will go find them and compile them, regardless of whether they're in the actual list of files you've handed off to the compiler. Diane =3D=3D=3D=3D=3D (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: For additional commands, e-mail: