Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 18893 invoked from network); 15 May 2003 02:20:36 -0000 Received: from auds951.usa.alcatel.com (143.209.238.80) by daedalus.apache.org with SMTP; 15 May 2003 02:20:36 -0000 Received: from alcatel.com (localhost [127.0.0.1]) by auds951.usa.alcatel.com (8.12.8p1/8.12.8) with ESMTP id h4F2Kib2008417 for ; Wed, 14 May 2003 21:20:45 -0500 (CDT) Message-ID: <3EC2F979.71835BA@alcatel.com> Date: Wed, 14 May 2003 21:20:41 -0500 From: Sebastien Blanc Organization: Alcatel USA X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Ant Users List Subject: Re: Ant-Contrib foreach | parallel not working.. References: <86B62B910F925F429E6A61B4C6F3B057F24A27@mail1.digitaldist.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi ! if this is ant-contrib, u can check the foreach.java file, it is not a big one and deliverered with the distribution. dwled a while ago and this was a synchronous loop. dunno about now, but check it out if this is ant-contrib u're using. seb. Matt Reason wrote: > Hello, > > I have a target I'd like to call n times. I've set up a foreach loop > and it works great. The only issue is it wastes time because one > execution of the target can only happen at one time. It'd be much more > efficient to run the target in parallel. > > The foreach task has a parallel option, but it seems to be ignoring the > fact that I set it to true. Has anyone else experienced this or, > hopefully, worked around it? > > Below is a rough idea the build. Basically, I have a file with a list > of host names of severs I want to connect to and run a script on. Since > each server is it's own 'world', it doesn't matter if they are all done > at the same time or not.(other than efficiency). > > > srcFile="./properties/server_deploys"/> > list="${cms_deploys}" \ > delimiter=" " > param="thisServer" > target="executeRemoteBuildScript" > inheritAll="true" > parallel="true"/> > > > > > host="${thisServer}" > username="${userid}" > password="${ftp_password}" > trust="yes" > timeout="800" > command=". .profile; cd bin; ant;"/> > > > PS, if I do get this to work, what does the output to the screen look > like? I bet it get's a little crazy. > > Thanks in advance for any help, > > Matt > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org