ant - conditional property setting -
how can set single property different values based on conditions. scenario follows: 1) loop through different values of messageid 2) give different 'comment' each messageid
<for list="12,23,34,45" param="messageid"> <sequential> <condition property="comment" value="wiremsg-inbound"> <equals arg1="messageid" arg2="12"/> </condition> <condition property="comment" value="wiremsg-outbound"> <equals arg1="messageid" arg2="12"/> </condition> <condition property="comment" value="appmsg-inbound"> <equals arg1="messageid" arg2="12"/> </condition> <condition property="comment" value="appmsg-outbound"> <equals arg1="messageid" arg2="12"/> </condition> </sequential> </for>
is valid? there other way? if want go through loop each time property comment should updated new value, since properties immutable, how solve this?
thanks
the variable task mutable. it's in ant contrib library see using for task.
Comments
Post a Comment