ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Rees" <j...@alpsgiken.gr.jp>
Subject problem with file dependencies
Date Wed, 24 Apr 2002 09:35:25 GMT
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>


Mime
View raw message