ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Todd" <>
Subject RE: File dependencies?
Date Tue, 05 Sep 2000 18:03:15 GMT
If I'm not mistaken, that is the default behavior of Ant - it checks the
last time modified of each .java file and compares it to any .class files it
finds.  As a matter of fact, from the Ant manual:
Compiles a source tree within the running (Ant) VM.

The source and destination directory will be recursively scanned for Java
source files to compile. Only Java files that have no corresponding class
file or where the class file is older than the java file will be compiled.

This can be viewed at:

Chris Todd
Software Engineer
Alabanza Corporation

> -----Original Message-----
> From: Ribeiro, Glauber []
> Sent: Tuesday, September 05, 2000 1:57 PM
> To: ''
> Subject: File dependencies?
> Hello,
> sorry if this is a newbie kind of question, but the FAQ server seems to be
> offline.
> I just started using Ant, and i like it. I haven't figured out
> how to set up
> a build.xml file so that Ant compiles only the files that have
> changed (like
> you do with a makefile). Is there a way to do this? It just feels
> like there
> should be.
> Thanks!
> glauber ribeiro
> (Experian, Schaumburg IL)
> Opinions stated are my own and not representative of Experian.

View raw message