----- Original Message -----
From: "Stefan Bodewig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 14, 2000 6:15 PM
Subject: antcall and dynamic properties


> <target name="tocall">
>   <echo message="${a}" />
> </target>
>
> <target name="call1">
>   <antcall target="tocall">
>     <param name="a" value="1" />
>   </antcall>
> </target>
>
> <target name="call2">
>   <antcall target="tocall">
>     <param name="a" value="1" />
>   </antcall>
> </target>
>
> <target name="main" depends="call1,call2" />
>
> would produce 1 twice because call1 would call the setter method with
> ${a} translated to 1 and call2 wouldn't call the setter method at all
> - because the echo task has been configured already.
>
I'm not sure if I don't understand this or if your example is wrong? You are
calling "tocall" with param a=1 both times. So why should it not be the
expected behaviour that that it prints "1" two times?

Nico


Reply via email to