Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 30218 invoked by uid 500); 4 Apr 2001 21:01:25 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 30136 invoked from network); 4 Apr 2001 21:01:24 -0000 Message-ID: <005401c0bd4a$abe9cdf0$012a2a0a@seessle.de> From: "Nico Seessle" To: References: Subject: Re: build order Date: Wed, 4 Apr 2001 23:03:15 +0200 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.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ----- Original Message ----- From: "Garcia, Gilles" To: Sent: Wednesday, April 04, 2001 8:38 PM Subject: build order > > 1) When Ant is run with ** to traverse a complete tree and if we assume > that a.class depends on b.class which in turn depends on c.class: > > (a.class) <------- (b.class) <------- (c.class) > > what happens if I run Ant after modifying c.class ? what you are describing in 3) - Ant compares the dates of the files and passes all sources which are newer than the corresponding class files to javac (or whatever compiler you use) > 2) javac itself, I understand, does not recompile b.class if I run > > javac -depend a.class > is this correct ? jikes is reported to be better when it comes to dependency-handling. But I can't tell you, I'm currently only doing "full" builds with ant (clean all class files before compilation). > > 3) Is it Ant which make the time stamp comparison between .java sources and > their corresponding .class files in order to determine what to pass javac > for > re-compilation, or is it javac internally which does that? Ant does that - but I don't know what javac does after it get's passed some arguments... Nico