How to do code something like this in groovy?
groovy
do { x.doIt() } while (!x.isFinished())
Because there is no do ... w
do ... w
You can use a condition variable with the regular while loop:
def keepGoing = true while( keepGoing ){ doSomething() keepGoing = ... // evaluate the loop condition here }