James Abley wrote:
Steve Loughran wrote:

I have a <failingwaitfor> custom task for this

I'm very happy for you!

Any plans to share it - is it part of Smartfrog, or the upcoming book, etc?

no, not in the book. In the sf-tasks.kar; no dependencies on anything else. I use it to bootstrap my real test sequence that is running junit in one VM, and (currently not) deploying mysql as a non-root user at the same time.

Now, one quirk of WaitFor is that it is not a Task; it is something else, that can't be easily inserted into a Sequence. So I had to write a new task, rather than just extend WaitFor and override its execute(). Strange but true:

http://svn.sourceforge.net/viewvc/smartfrog/trunk/core/extras/ant/src/org/smartfrog/tools/ant/FaultingWaitForTask.java?view=markup

I use this inside <functionaltest> to spin for a while:
http://svn.sourceforge.net/viewvc/smartfrog/trunk/core/extras/ant/src/org/smartfrog/tools/ant/FunctionalTestTask.java?view=markup

there's been some talk on test-ng users about me maybe moving the latter test over to ant core; there's no real reason why not, except that either I get managment signoff to relicense something that is LGPL to Apache 2.0 license, (we did it with <tourl>), or rewrite from the ground up, including all the tests.

-steve



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to