ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis GALIEGUE <...@one2team.com>
Subject Re: foreach ant task
Date Thu, 11 Mar 2010 14:39:58 GMT
On Thu, Mar 11, 2010 at 15:02, Kaushal Shriyan <kaushalshriyan@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
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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


Mime
View raw message