Gradle wait for a file to exist

Viewed 21

Is there a way to make a task wait for a condition like for a file to exist?

Something like:

task checkDeployment() {
    waitFor new File("results.txt").exist();
    ...
}
0 Answers
Related