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 28
28
set -e
29
29
30
30
TARGET=" useage"
31
+ DEBUG=false
31
32
OFFLINE=false
32
33
CONCURRENCY=" -T2C"
33
34
@@ -41,6 +42,10 @@ case $key in
41
42
TARGET=" $1 "
42
43
shift
43
44
;;
45
+ --debug)
46
+ DEBUG=true
47
+ shift
48
+ ;;
44
49
--offline)
45
50
OFFLINE=true
46
51
shift
57
62
done
58
63
59
64
function print-useage() {
60
- echo -e " \n./build.sh [--offline] <target> | --help"
65
+ echo -e " \n./build.sh [--debug] [-- offline] <target> | --help"
61
66
echo -e " \nAvailable build targets are:"
62
67
echo -e " \tquick - A distribution directory that can be found in exist-distribution/target/elemental-x.y.x-dir"
63
68
echo -e " \tquick-archives - A distribution directory, and distribution archives that can be found in exist-distribution/target/"
85
90
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
86
91
BASE_CMD=" ${SCRIPT_DIR} /mvnw -V"
87
92
93
+ if [ " ${DEBUG} " == " true" ]; then
94
+ BASE_CMD=" ${BASE_CMD} --debug"
95
+ fi
96
+
88
97
if [ " ${OFFLINE} " == " true" ]; then
89
98
BASE_CMD=" ${BASE_CMD} --offline"
90
99
fi
You can’t perform that action at this time.
0 commit comments