[Webtest] Dynamic property resolution with Ant 1.8 and later

Stanislaw Osinski Stanislaw Osinski <stanislaw.osinski@carrotsearch.com>
Mon, 16 Aug 2010 10:27:19 +0200


--0016364ed7f2d24b92048dec99de
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I've been heavily using Canoo Webtest on quite a few projects and it's been
nothing short of awesome.

Recently though, when I upgraded to Ant to version 1.8.0, I noticed that
dynamic property resolution doesn't seem to work any more.

When the following simple sequence:

      <storeProperty name="id" value="a" propertyType="dynamic" />
      <storeProperty name="idx" value="#{id}x" propertyType="dynamic" />

is run using Ant 1.7.1, the 'idx' property correctly resolves the reference
to the 'id' property and gets a value of 'ax'.

However, when run on Ant 1.8.0 or 1.8.1, the resolution does not seem to
work at all, leaving 'idx' value equal to '#{id}x'. I also noticed that when
I set eval="true", dynamic properties do get resolved, but I'm working with
text-based values, so numeric evaluation should not be applied.

Am I missing something obvious here, or it is a regression bug?

Thanks and keep up the good work!

Staszek

--
Stanislaw Osinski, stanislaw.osinski@carrotsearch.com
http://carrotsearch.com

--0016364ed7f2d24b92048dec99de
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<div><br></div><div>I&#39;ve been heavily using Canoo Webtest on quit=
e a few projects and it&#39;s been nothing short of awesome.</div><div><br>=
</div><div>Recently though, when I upgraded to Ant to version 1.8.0, I noti=
ced that dynamic property resolution doesn&#39;t seem to work any more.</di=
v>
<div><br></div><div>When the following simple sequence:</div><div><br></div=
><div><div>=A0=A0 =A0 =A0&lt;storeProperty name=3D&quot;id&quot; value=3D&q=
uot;a&quot; propertyType=3D&quot;dynamic&quot; /&gt;</div><div>=A0=A0 =A0 =
=A0&lt;storeProperty name=3D&quot;idx&quot; value=3D&quot;#{id}x&quot; prop=
ertyType=3D&quot;dynamic&quot; /&gt;</div>
</div><div><br></div><div>is run using Ant 1.7.1, the &#39;idx&#39; propert=
y correctly resolves the reference to the &#39;id&#39; property and gets a =
value of &#39;ax&#39;.=A0</div><div><br></div><div>However, when run on Ant=
 1.8.0 or 1.8.1, the resolution does not seem to work at all, leaving &#39;=
idx&#39; value equal to &#39;#{id}x&#39;. I also noticed that when I set ev=
al=3D&quot;true&quot;, dynamic properties do get resolved, but I&#39;m work=
ing with text-based values, so numeric evaluation should not be applied.</d=
iv>
<div><br></div><div>Am I missing something obvious here, or it is a regress=
ion bug?</div><div><br></div><div>Thanks and keep up the good work!</div><d=
iv><br></div><div>Staszek</div><div><br></div><div>--<br><div>Stanislaw Osi=
nski, <a href=3D"mailto:stanislaw.osinski@carrotsearch.com">stanislaw.osins=
ki@carrotsearch.com</a><br>
<a href=3D"http://carrotsearch.com">http://carrotsearch.com</a><br>
</div></div>

--0016364ed7f2d24b92048dec99de--