Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: foreach ant task

Francis Galiegue

2010-03-11

Replies: Find Java Web Hosting

Author LoginPost Reply
On Thu, Mar 11, 2010 at 15:02, Kaushal Shriyan <kaushalshriyan@(protected):
> Hi
>
> can someone here give me example to use foreach ant task to deploy
> same war to multiple running Tomcat Server?
> http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html
>

You should consider using <for> instead: with <foreach>, you have to
define a subtask; <for> doesn't require it:

<for list="${listref}" param="server">
  <sequential>
    <!-- do something with @{server} -->
  </sequential>
</for>

--

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@(protected)
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.