> From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
> i have a problem with properties in <for>
> <snip/>
> Once the first time the updatelist and deletelist are loaded for the
> first environment = @{Lum} it cannot be overwrited for the next
> environment in the list ${Lums}.
> <snip/>
> How to make that loops work with a list of input properties,
> properties expanded correct ?
> <snip/>
> Any hints ?

This is a recognized problem Gilbert. There has been discussions on how to
address it using property scopes, temp name generator, etc...

Currently, the 'canonical' work around is to use a property name which uses
in part a macro param (a for param in your case) to make the name unique.

This translate into roughly the following code:

<for list="${Lums}" param="Lum">
<sequential>
  ..
  <loadfile property="[EMAIL PROTECTED]"
            srcFile="K:[EMAIL PROTECTED]" />

  <loadfile property="[EMAIL PROTECTED]"
            srcFile="K:\r1p1l01a1/@{Lum}/temp/deleted.txt" />

  ...
  <for list="[EMAIL PROTECTED]" param="server">
    <sequential>
      <for list="[EMAIL PROTECTED]" param="delfile">
      ...

The property name is defined in terms of @{Lum} to make it unique, and
referenced as usual, even though it looks a bit weird, as [EMAIL PROTECTED]

We're hoping to have a better solution for Ant 1.7. --DD


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to