ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: Maintaining dependencies across antcalls
Date Mon, 02 Sep 2002 21:49:22 GMT


Laurie Harper wrote:
> 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">
                           ^^^^^^^^^^^^^^^^^
    <target name="worker">

>     <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.
-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


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