ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject RE: <if> <isset> with for loop ?
Date Thu, 01 Sep 2005 14:24:10 GMT
> From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de]
> i want to run an antcontrib for loop only,
> if a property has been set.
> <if>
> <isset property="${deldirs.@{Lum}}" />
> <then>

Glad to hear Ant-Contrib's <assert> works for you.
I believe your mistake above was to de-reference the property name instead
of supplying just the property name. You should have written:

	<isset property="deldirs.@{Lum}" />

Of course this code must be in the context of a <ac:for> or <macrodef> to be
valid, as otherwise @{Lum} will not be replaced with a value. --DD


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


Mime
View raw message