Merge "Clearer message when TaskUpToDateValidator's second build fails" into androidx-master-dev
diff --git a/gradlew b/gradlew
index f567cdb..1b39b65 100755
--- a/gradlew
+++ b/gradlew
@@ -266,5 +266,9 @@
# Check whether we were given the "-PverifyUpToDate" argument
if [[ " ${@} " =~ " -PverifyUpToDate " ]]; then
# Re-run Gradle, and find all tasks that are unexpectly out of date
- runGradle "$@" -PdisallowExecution --continue
+ if ! runGradle "$@" -PdisallowExecution --continue; then
+ echo >&2
+ echo "TaskUpToDateValidator's second build failed, -PdisallowExecution specified" >&2
+ exit 1
+ fi
fi