fixing logic which checks if gradle tasks should be reloaded

The -nt logic was backwards, causing "gradle tasks" to be executed
every time; if build.gradle is newer than .gradletasknamecache then
return 0 (i.e. true).
This commit is contained in:
Evan McQuinn 2013-10-14 12:20:40 -06:00
commit 393b09361e

View file

@ -54,13 +54,14 @@ function in_gradle() {
fi
}
############################################################################## Examine the build.gradle file to see if its
##############################################################################
# Examine the build.gradle file to see if its
# timestamp has changed, and if so, regen
# the .gradle_tasks cache file
############################################################################
_gradle_does_task_list_need_generating () {
[ ! -f .gradletasknamecache ] && return 0;
[ .gradletasknamecache -nt build.gradle ] && return 0;
[ build.gradle -nt .gradletasknamecache ] && return 0;
return 1;
}