executing gradlew, when gradlew-file exists

This commit is contained in:
Janosch Schwalm 2017-12-11 20:26:01 +01:00
commit 76c8150233

View file

@ -1,6 +1,18 @@
##############################################################################
# A descriptive listing of core Gradle commands
############################################################################
gradle-or-gradlew() {
if [ -f ./gradlew ] ; then
echo "executing gradlew instead of gradle";
./gradlew "$@";
else
gradle "$@";
fi
}
alias gradle=gradle-or-gradlew;
function _gradle_core_commands() {
local ret=1 state
_arguments ':subcommand:->subcommand' && ret=0