| echo "IF THIS SCRIPT FIXES YOUR BUILD; OPEN A BUG." |
| echo "(in nearly all cases, it should not be necessary to run a clean build)." |
| # one case where it is convenient to have a clean build is for double-checking that a build failure isn't due to an incremental build failure |
| # another case where it is convenient to have a clean build is for performance testing |
| # another case where it is convenient to have a clean build is when you're modifying the build and may have introduced some errors but haven't shared your changes yet (at which point you should have fixed the errors) |
| echo "Runs a clean build of <tasks>" |
| if [ "$goals" == "" ]; then |
| function removeCaches() { |
| GRADLE_USER_HOME=../../out ./gradlew --no-daemon $goals |