How do I do the following in groovy:
while (somethingIsntReady || now.isAfter(before + 5 minutes)) {
sleep(1000)
}
Right now I do something like this:
i = 1
while (!finishedFile.exists() && i in 1..300) {
sleep(1000)
i++
}
which doesn't seem right in groovy because it's just the way I would do it in java.