ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Siri <as...@printcafe.com>
Subject RE: Wildcards in the file attribute for the available task
Date Wed, 10 Jul 2002 20:38:56 GMT
Sorry, I changed it to 10 minutes during testing.  I'd probably give JBossMQ
something like 30 minutes to an hour to process the messages (stress
testing).  So what I want is something like "see if all of the messages have
been PROPERLY processed in 60 minutes, if not then bail."  When I say
properly I mean that no messages are sitting around in any queues (using
file-based persistence).  If they are sitting around after an hour then
something is wrong with the unit test and the waitfor should timeout (giving
a build failed, no?)  So I guess I'd take choice 2).  However, the problem
I'm having isn't with the waitfor, but with the "looking for a set of files"
bit.  Because these are dynamically generated files there isn't a specific
filename or set of filenames to look for - hence the need for wildcards.
Another thing I could do is see if a directory is empty.  Just wondering if
there was a build-in task to do these sorts of test (from what I could tell
Available is the only one that can do this sort of thing - test for file
existence).

Thanks for the help

-Aaron

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Wednesday, July 10, 2002 4:17 PM
To: Ant Users List
Subject: Re: Wildcards in the file attribute for the available task


--- Aaron Siri <asiri@printcafe.com> wrote:
> Are wildcards/regexps permitted and respected for the file attribute in
> the Available tag?

Nope.
 
> Specifically, I'm trying to do something like the following to wait for
> a bit to make sure all of the jboss messages have been processed (the
> snippet is part of a unit test target):
> 
> <waitfor maxwait="10" maxwaitunit="minute" checkevery="60"
[...]

But there's a difference between waiting (at most) 10 minutes versus
"[making] sure all of the jboss messages have been processed". What if
they're not all done within 10 minutes? Then you haven't in fact made sure
they've all been processed, right?, since you're going to bail after that,
regardless.

So which do you actually want to do: 1) make sure they've all been
processed, or 2) give it 10 minutes, then bail?

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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

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


Mime
View raw message