Hi,
  if <depend> is not perfect, how to solve this
dependency probelm when compiling?.I want to write a
script for our financial product which is already
running live.Previously we were using NT batch file to
build.Please help me in this regard.

Ramkumar

 --- Conor MacNeill <[EMAIL PROTECTED]>
wrote: > Ram Krish wrote:
> > Hi,
> >    I have very liitle knowledge in Ant.Whats the
> > advantage of Depend task over javac 
> 
> 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.
> 
> <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
> > them effectivwly for building projects?..(i am
> using
> > JDK1.3.1)
> > 
> 
> Just put a <depend> task before <javac> in your
> build target and use the 
> same parameters.
> 
> Conor
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>  

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to