ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject RE: Confused about the <depend> and <javac> tasks
Date Fri, 25 Apr 2003 12:46:11 GMT
Oh! Thanks so much Stefan!

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Friday, April 25, 2003 1:17 AM
To: user@ant.apache.org
Subject: Re: Confused about the <depend> and <javac> tasks


On Thu, 24 Apr 2003, William Lopez <william.lopez@eds.com> wrote:

> ...it sounds to me that <javac> is already doing what <depend> does?

On a single class level, yes.

Lets say

class A extends B

If B.java is newer than B.class, <javac> will recompile B.java, but not
A.java (as it is not newer than A.class).

<depend> will determine that B.class is out of date, it will also know that
changes to B may affect A and thus also consider A.class as out of date and
delete both .class files.

<javac> called after <depend> will now find that both A.java and B.java need
to be compiled as the .class files don't exist.

HTH

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
View raw message