Hi,
i've found a working solution with antcontrib
i'm using <assert> now instead of <if> <isset> =
<assert name="[EMAIL PROTECTED]" execute="true">
<for list="[EMAIL PROTECTED]" param="deldir">
<sequential>
<echo message="Deleting Directory -> @{deldir}" />
</sequential>
</for>
</assert>
and that works :-)
Gilbert
-----Original Message-----
From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 31, 2005 11:26 AM
To: [email protected]
Subject: <if> <isset> with for loop ?
Hi,
i want to run an antcontrib for loop only,
if a property has been set.
So i wrote =
<if>
<isset property="[EMAIL PROTECTED]" />
<then>
<for list="[EMAIL PROTECTED]" param="deldir">
<sequential>
<echo message="Deleting Directory -> @{deldir}" />
</sequential>
</for>
</then>
</if>
but that didn't work.
How to check if a property has been set in
conjunction with a foor loop ?
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]