ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: problem with file dependencies
Date Wed, 24 Apr 2002 14:57:53 GMT
Oh! I get it ;-) If "Constants" has a "public static final int VALUE =
1234;" used in other sources, Javac doesn't do an access to Constants.VALUE
in the bytecode of other classes using VALUE, but uses 1234 directly
instead. So <depend> which only looks at the bytecode would not see the
dependency to "Constants"... It would have to look at the source code as
well, and thus become a compiler itself...

I'd go with <uptodate> or jikes myself ;-)
Thanks for the reference to <depend>! --DD

-----Original Message-----
From: Stefan Bodewig [] 
Sent: Wednesday, April 24, 2002 9:46 AM
Subject: Re: problem with file dependencies

On Wed, 24 Apr 2002, Dominique Devienne <> wrote:

> What could be done is force a rebuild when the constant class (or
> source) is newer than any of the other classes (or the corresponding
> JARs) (or sources), by wiping out ${build}. Add an <uptodate>
> condition should do.

If the "constants" are object references and not primitives, <depend>
will be the way to go.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message