ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@seessle.de>
Subject Re: antcall and dynamic properties
Date Thu, 14 Sep 2000 20:19:33 GMT
----- Original Message -----
From: "Stefan Bodewig" <bodewig@bost.de>
To: <ant-dev@jakarta.apache.org>
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



Mime
View raw message