File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2828set -e
2929
3030TARGET=" useage"
31+ DEBUG=false
3132OFFLINE=false
3233CONCURRENCY=" -T2C"
3334
@@ -41,6 +42,10 @@ case $key in
4142 TARGET=" $1 "
4243 shift
4344 ;;
45+ --debug)
46+ DEBUG=true
47+ shift
48+ ;;
4449 --offline)
4550 OFFLINE=true
4651 shift
5762done
5863
5964function print-useage() {
60- echo -e " \n./build.sh [--offline] <target> | --help"
65+ echo -e " \n./build.sh [--debug] [-- offline] <target> | --help"
6166 echo -e " \nAvailable build targets are:"
6267 echo -e " \tquick - A distribution directory that can be found in exist-distribution/target/elemental-x.y.x-dir"
6368 echo -e " \tquick-archives - A distribution directory, and distribution archives that can be found in exist-distribution/target/"
8590SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
8691BASE_CMD=" ${SCRIPT_DIR} /mvnw -V"
8792
93+ if [ " ${DEBUG} " == " true" ]; then
94+ BASE_CMD=" ${BASE_CMD} --debug"
95+ fi
96+
8897if [ " ${OFFLINE} " == " true" ]; then
8998 BASE_CMD=" ${BASE_CMD} --offline"
9099fi
You can’t perform that action at this time.
0 commit comments