ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Maintaining dependencies across antcalls
Date Tue, 03 Sep 2002 06:22:46 GMT
On Mon, 02 Sep 2002, Laurie Harper <zodiac@holoweb.net> wrote:

>   <target name="init">
>   <target name="worker" depends="init">
>   <target name="master" depends="init">
>     <antcall target="worker"><param name="x" value="y"/></antcall>
> 
> Then running ant causes 'init' to be invoked 3 times. I only want it
> to be executed once.

Guard against it with a property.

<target name="init" unless="init-complete">
  ...
  <property name="init-complete" value="who cares?"/>
</target>

Stefan

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