ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Stulsky" <vitaly_stul...@yahoo.com>
Subject RE: Dependencies between Java Classes
Date Fri, 05 May 2000 08:54:45 GMT


> -----Original Message-----
> From: Akbar Ibrahim [mailto:akbar.ibrahim@wipro.com]
> Sent: Friday, May 05, 2000 2:34 PM
> To: ant-dev@jakarta.apache.org
> Subject: Re: Dependencies between Java Classes
> 
> 
> Even with this type of target, I still have the same problem. If class A is
> dependent on Class B and I change class B, it compiles only class B and not
> class A (which hasn't changed at all, but should also be compiled because
> the class it depends on has changed).
> 
> I would like to know if there is any way to specify this dependency.
Try -Xdepend, but this option will deprecate in JDK 1.3.
The solution - pass the full list (A.java & B.java) to the javac.
The alternative is jikes.

> 
> Akbar
> 
> 
> ----- Original Message -----
> From: <Tcmits1@cs.com>
> To: <ant-dev@jakarta.apache.org>
> Sent: Thursday, May 04, 2000 7:42 AM
> Subject: Re: Dependencies between Java Classes
> 
> 
> > I am using a 'compile.all' target.   At first I was having problems with
> not
> > getttng dependent classes to recompile until I found I was using the src
> and
> > path incorrectly.   For me, getting the src attribute to point to the top
> of
> > the package hierarchy and the include attribute to point to the actual
> source
> > files worked:
> >
> >   <target name="compile.all" depends="prepare">
> >     <javac srcdir="${src}" destdir="${build}" includes="**/*.java" />
> >   </target>
> >
> > Josef
> >
> >
> 

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Mime
View raw message