This is a simplified script. I need to execute the script body several
hundred times in a loop. I also need to run about twenty of them in
parallel. Here's my business problem and the pseudo code for the
solution. Maybe you can suggest another approach.

Problem: Simultaneously detect a DNS ip address change on twenty remote
hosts (window and unix).

Solution:
<for param="remotehost" list="host1..host20" parallel="true">
   <sequence>
      <remotepinguntil remotehost="@{host}" pinghost="theDNSHost"
ipaddress="123.456.789.012"/>
   </sequence>
</for>
<macrodef name="remotepinguntil">
   <attribute name="remotehost"/>
   <attribute name="pinghost"/>
   <attribute name="ipaddress"/>
   <!--
     On @{remotehost} ping @{pinghost} until the ipaddress =
@{ipaddress}
   -->
</macrodef>

-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 18, 2006 8:57 AM
To: Ant Users List
Subject: Re: Problem with script task and properties


Dick, Brian E. wrote:
> I need to pass values from a script into a target, but the
immutability
> of properties is getting in the way. I can't use the antcall task in
my
> script, because I eventually need to return a value from the target to
> the script too. Here's a simplified test script.


use <scriptdef> and have one of the params the name of the property to
set.




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

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

Reply via email to