ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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 [mailto:bodewig@apache.org] 
Sent: Wednesday, April 24, 2002 9:46 AM
To: ant-user@jakarta.apache.org
Subject: Re: problem with file dependencies

On Wed, 24 Apr 2002, Dominique Devienne <DDevienne@lgc.com> 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.

Stefan

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

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


Mime
View raw message