Ivar Bratberg wrote:
Hi,
I have the following problem I try to solve in ant.
I should check a www server for a certain result each minute.
I should keep on checking until a desired result is given ( the file
downloaded should exceed a certain limit )
In addition it should have a kind of timeout so it it will return if it
has tried too many times.
Do some of you have better suggestions for solving this ?
Note, I cannot use <waitfor> task, because I have to check not only for
error code on the response, but the text itself( I manage whith checking
the length of the file downloaded >
Actually, it sounds like you can use <waitfor>, just with an extended
condition. I do something similar at work where we actually run regexp
patterns over the response and wait for a specific pattern coming back.
--
Steve Loughran http://www.1060.org/blogxter/publish/5
Author: Ant in Action http://antbook.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]