blob: 6e4b96ff2fe377360b13e6c7ffc8477c1dcfc851 [file] [log] [blame]
#! /bin/bash
# helper script to build importMaven and execute with the given arguments.
set -e
WORKING_DIR=`pwd`
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
ALLOW_JETBRAINS_DEV="false"
for arg in "$@"
do
if [ "$arg" == "--allow-jetbrains-dev" ]; then
ALLOW_JETBRAINS_DEV="true"
fi
done
# build importMaven
(cd $SCRIPT_DIR && ./gradlew installDist -q -Pandroidx.allowJetbrainsDev="$ALLOW_JETBRAINS_DEV")
# execute the output binary
(SUPPORT_REPO=$SCRIPT_DIR/../.. $SCRIPT_DIR/build/install/importMaven/bin/importMaven $@)