ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akbar Ibrahim" <>
Subject Re: Dependencies between Java Classes
Date Fri, 05 May 2000 11:34:17 GMT
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.


----- Original Message -----
From: <>
To: <>
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
> getttng dependent classes to recompile until I found I was using the src
> path incorrectly.   For me, getting the src attribute to point to the top
> the package hierarchy and the include attribute to point to the actual
> files worked:
>   <target name="compile.all" depends="prepare">
>     <javac srcdir="${src}" destdir="${build}" includes="**/*.java" />
>   </target>
> Josef

View raw message