ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <zod...@holoweb.net>
Subject Maintaining dependencies across antcalls
Date Mon, 02 Sep 2002 21:43:14 GMT
Is there a way to use antall or something similar that maintains the
dependency graph? For example, if I have:

<project name="..." default="master">
  <target name="init">
    <echo message="init"/>
  </target>
  <target name="worker" depends="init">
    <echo message="worker: ${x}"/>
  </target>
  <target name="master" depends="init">
    <antcall target="worker"><param name="x" value="y"/></antcall>
    <antcall target="worker"><param name="x" value="z"/></antcall>
  </target>
</project>

Then running ant causes 'init' to be invoked 3 times. I only want it to be
executed once.

Thanks,

L.


--
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