Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95419 invoked from network); 18 May 2007 16:16:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2007 16:16:17 -0000 Received: (qmail 86098 invoked by uid 500); 18 May 2007 16:16:17 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 86062 invoked by uid 500); 18 May 2007 16:16:17 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 86051 invoked by uid 99); 18 May 2007 16:16:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 09:16:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [207.69.200.48] (HELO pop03.mail.atl.earthlink.net) (207.69.200.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 09:16:10 -0700 Received: from nc-76-6-28-165.dhcp.embarqhsd.net ([76.6.28.165] helo=flossware.homelinux.org) by pop03.mail.atl.earthlink.net with esmtp (Exim 3.36 #1) id 1Hp57N-0004Rj-00 for user@ant.apache.org; Fri, 18 May 2007 12:15:49 -0400 Received: from devserver.flossware.com (devserver.flossware.com [192.168.168.6]) by flossware.homelinux.org (Postfix) with ESMTP id B71E11D0164 for ; Fri, 18 May 2007 12:15:48 -0400 (EDT) Message-ID: <464DD134.80405@mindspring.com> Date: Fri, 18 May 2007 12:15:48 -0400 From: "Scot P. Floess" Reply-To: floess@mindspring.com User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Ant Users List Subject: Re: while-like structure in Ant References: <558515.18955.qm@web35301.mail.mud.yahoo.com> <4642FC62.8040005@apache.org> <464DC6C5.50700@oracle.com> In-Reply-To: <464DC6C5.50700@oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Emir: Can you email me your examples? I may be able to help you out... Sorry, I started a new job a few months ago and I seem to have very little free time - I've been rather quiet here lately because of it... Guru Balse wrote: > FYI: Scot Floess (floess@mindspring.com) has implemented some great > loop solutions using and from ant-contrib. > > Steve Loughran wrote: >> Emir Mahmut BAHSI wrote: >>> Hi all, >>> I have been working on conditional structures and loop structures on >>> existing workflow managers for a long time. For this purpose I have >>> implemented two simple examples for if-type and switch-type cases >>> (examples are attached). In these examples my program is simply >>> downloading a file. If that file does not exist in the first web >>> address it tries another address. However, I could not implement a >>> loop structure for that. In the loop case the program should try the >>> same address until the file exists. Actually I know this is not a >>> reasonable and useful scenario but I just want to show whether a >>> conditional-loop scenario can be implemented in Ant. >>> >>> Can u suggest me anything to implement that example. Any help is >>> appreciated. >>> >>> Thanks. >>> >> >> Ant is not a general purpose workflow manager. That means we get to >> avoid a lot of the workflowy concepts of conditions, choices and >> loops, or the pi-calculus constructs. And it doesnt come with anyy >> failure handling. >> >> What it does have is some simple conditions, the option to skip >> targets or fail the build on the state of conditions, and the ability >> to block until a condition is met. >> >> if all you want is for the build to pause until a file is present, >> use the task, >> >> -steve >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-392-6730 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org