ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel <r...@ddcom.co.jp>
Subject Re: Need help understanding dependencies and destdir
Date Wed, 15 Dec 2004 13:02:10 GMT
James Abley wrote

> On Wed, 2004-12-15 at 11:42, Joel wrote:
> > > For that last part, I think that you need to look at <depend/>. 
> > > Have a 
> > > 
> > > <depend srcdir="${src}" destdir="${dest}">
> > > 
> > > <javac/> is not aware of dependencies and inheritance hierarchies.
> > 
> > Is <javac/> supposed to be able to tell when a particular source file
> > is newer than its class file? 
> > [..]

> Sorry, I was a bit ambiguous in my first answer. 
> 
> Yes, it can check a .java source file against the corresponding .class
> file for timestamp or existence differences which point to requiring a
> compilation, but my understanding is that it doesn't check for a
> superclass  having changed, or any imports. You may get compile failures
> thrown by javac; for example, if a new abstract method has been
> introduced by into a superclass; which would alert you to a potential
> issue. But you may just get a subtle bug in your application.

So, if I touch a source file, that source file, at least, should
recompile?

--
Joel Rees   <rees@ddcom.co.jp>
digitcom, inc.   株式会社デジコム
Kobe, Japan   +81-78-672-8800
** <http://www.ddcom.co.jp> **


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


Mime
View raw message