You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2005/08/31 11:38:43 UTC

[Solved] was = with for loop ?

 
Hi,

i've found a working solution with antcontrib

i'm using <assert> now instead of <if> <isset> =

<assert name="${deldirs.@{Lum}}" execute="true">
       <for list="${deldirs.@{Lum}}"  param="deldir">
	<sequential>
	<echo message="Deleting Directory -> @{deldir}" />
	</sequential>
      </for>
</assert>

and that works :-)

Gilbert


-----Original Message-----
From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
Sent: Wednesday, August 31, 2005 11:26 AM
To: user@ant.apache.org
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="${deldirs.@{Lum}}" />
<then>
       <for list="${deldirs.@{Lum}}"  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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org