I am having a list of machine ips in a ant property.
<property name="machines" ip="10.10.10.1;10.10.10.2;10.10.10.3"/>
I have to copy one file to all the machines(all the machines are windows machines). So I want to split this string and to use it inside a for loop. Inside that forloop i will execute the copy command.
<exec executable="cmd.exe">
<pre>
</pre>
<arg line="/C COPY /Y sample.txt \\${machine_ip}\Shared_folder\sample.txt"/>
<pre>
</pre>
</exec>
Now how to split and use it inside for loop?