On Thu, Mar 11, 2010 at 15:02, Kaushal Shriyan <kaushalshri...@gmail.com> wrote:
> 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
f...@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to