On Fri, 16 Nov 2001, Jens Larsson <[EMAIL PROTECTED]> wrote:

> The target fires three times alright, but the instance property
> holds the first value (a) all three times.

No it doesn't, but the message or remotedir attributes of your tasks
won't get evaluated a second or third time - the best thing you can do
is to stop using properties and call the appropriate methods directly,
something like

      testenv = project.getProperty("testenv");
      service = project.getProperty("service");
>     for (var i=0; i < instances.length; i++) {
>       Project.setProperty("instance", instances[i]);
        ftp_transfer.setRemoteDir("/"+testenv+"/"+service+"/"+instances[i]);
>       ftp_transfer.execute();
>     }

Stefan

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

Reply via email to