Why not compile your entire tree with one <javac>??
That would solve the problem you're asking about, at least.
----- Original Message -----
From: "Joel Rees" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 5:35 AM
Subject: problem with file dependencies
> Can someone suggest a way to change the following so that a change to a
> class of constants in the package "common" will cause classes in the
> packages "controller" and "view" to be re-compiled? Or perhaps suggest
some
> reasons why it would not be happening today?
>
> <target name="init">
> <tstamp/>
> </target>
>
> <target name="common" depends="init">
> <javac destdir="${build}" debug="on">
> <src path="${src}"/>
> <include name="${common}/*.java"/>
> </javac>
> </target>
>
> <target name="controller" depends="common">
> <javac destdir="${build}" debug="on">
> <src path="${src}"/>
> <include name="${controller}/*.java"/>
> </javac>
> </target>
>
> <target name="view" depends="common,controller">
> <javac destdir="${build}" debug="on">
> <src path="${src}"/>
> <include name="${view}/*.java"/>
> </javac>
> </target>
>
>
>
> Joel Rees
> Alps Giken Kansai Systems Develoment
> Suita, Osaka
>
>
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>