Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 66925 invoked from network); 21 Nov 2003 15:34:17 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Nov 2003 15:34:17 -0000 Received: (qmail 94248 invoked by uid 500); 21 Nov 2003 15:33:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 94198 invoked by uid 500); 21 Nov 2003 15:33:52 -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 94097 invoked from network); 21 Nov 2003 15:33:51 -0000 Received: from unknown (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 21 Nov 2003 15:33:51 -0000 Received: from preilly.local.corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com (8.12.9/8.12.5) with ESMTP id hALFXqd8060968 for ; Fri, 21 Nov 2003 15:33:52 GMT (envelope-from peter.reilly@corvil.com) From: peter reilly Organization: corvil To: Ant Users List Subject: Re: javac compilation Date: Fri, 21 Nov 2003 15:33:07 +0000 User-Agent: KMail/1.5 References: <002001c3afea$7b386f50$960205c0@parimala> <00d001c3b042$86639870$3678030a@dougl> In-Reply-To: <00d001c3b042$86639870$3678030a@dougl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311211533.07085.peter.reilly@corvil.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Friday 21 November 2003 15:17, Doug Lochart wrote: > Yes it can but the directory for your compiled classes must match the > package structure of your source and the root directory of the classes > structure needs to be in the classpath of the build or else it will > recompile all the java files all the time. This is not quite true. The directory layout of your souces must match the package declarcations in the sources. So for example if you have a file A.java in package org.acme and the source dir is src, then A.java has to be in the directory src/org/acme. If one then whats the classes to be in a directory called classes can then do: The javac task will check if src/org/acme/A.java is newer that classes/org/acme/A.class and if so it will call the javac compiler with src/org/acme/A.java and the target classes dir as "classes". Peter > > Doug > > Now I've gained some understanding > Of the only world that we see. > Things that I once dreamed of > Have become reality. > > These walls that still surround me > Still contain the same old me, > Just one more who's searching for > A world that ought to be. > ----- Original Message ----- > From: "Parimala" > To: "'Ant Users List'" > Sent: Thursday, November 20, 2003 11:46 PM > Subject: javac compilation > > > Hi folks, > > I have a doubt, Does javac compiles only modified .java files??? > > > > Parimala > > --------------------------------------------------------------------- > 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