ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <>
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 name="worker" depends="init">
    <echo message="worker: ${x}"/>
  <target name="master" depends="init">
    <antcall target="worker"><param name="x" value="y"/></antcall>
    <antcall target="worker"><param name="x" value="z"/></antcall>

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



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message