Ram Krish wrote:
Hi,If class A depends on class B and B.java is changed, the <javac> task will not recompile A.java even though class B may have changed its interface. If it hasB has changes, the result may be a runtime error (IncompatibleClassChangeError). The depend task analyses class dependencies and if A depends on B and B.java has changed, it will delete A.class, forcing A.java to be recompiled. The interface change would then cause some sort of compilation error.
I have very liitle knowledge in Ant.Whats the
advantage of Depend task over javac
<depend> is not perfect as it relies on class file dependencies. Most, but not all, source level dependencies result in class filedependencies. In particular, static final constants do not.
and how to combine
Just put a <depend> task before <javac> in your build target and use the same parameters.them effectivwly for building projects?..(i am using JDK1.3.1)
Conor
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>