| while-like structure in Ant | while-like structure in Ant 2007-05-18 - By Scot P. Floess
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@(protected)) has implemented some great > loop solutions using <math> and <for> 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 <waitfor> task, >> >> -steve >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@(protected) >> For additional commands, e-mail: user-help@(protected) >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@(protected) > For additional commands, e-mail: user-help@(protected) > >
-- 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@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |