ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: problem with file dependencies
Date Wed, 24 Apr 2002 11:17:15 GMT
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" <joel@alpsgiken.gr.jp>
To: "Ant Users List" <ant-user@jakarta.apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message