This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch ISIS-3271
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/ISIS-3271 by this push:
new 7dc081c08f ISIS-3271: adds -A option to build.sh
7dc081c08f is described below
commit 7dc081c08ff03e65334152be9efe19dd7cba7a5d
Author: Dan Haywood <[email protected]>
AuthorDate: Fri Nov 4 09:08:26 2022 +0000
ISIS-3271: adds -A option to build.sh
---
build.sh | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/build.sh b/build.sh
index 913e5573e4..8438e420d1 100644
--- a/build.sh
+++ b/build.sh
@@ -51,7 +51,8 @@ usage() {
echo " -k use 'package' rather than 'install'. Does not run integ tests.
Cannot combine with '-y'" >&2
echo " -y use 'verify' rather than 'install'. Cannot combine with '-k'"
>&2
echo " -O do NOT add '-o' (offline) flag, ie bring down any new
dependencies" >&2
- echo " -I append '-Dmodule-all-except-incubator"
>&2
+ echo " -A append '-Dmodule-all. Cannot combine with '-I'"
>&2
+ echo " -I append '-Dmodule-all-except-incubator. Cannot combine with '-A'"
>&2
echo " -F do NOT search for Failures and Errors at the end"
>&2
echo " -S do NOT print summary or last 50 lines at the end"
>&2
echo " -w whatif - don't run the command but do print it out. Implies -v
(verbose)" >&2
@@ -71,13 +72,14 @@ WHATIF=false
SINGLE_THREADED=false
SKIP_SEARCH_FOR_FAILURES=false
SKIP_SUMMARY=false
+ALL=false
ALL_EXCEPT_INCUBATOR=false
EDIT=false
VERBOSE=false
MVN_LOG=/tmp/$BASENAME_0.$$.log
-while getopts 'prcntlkyIOFSwveh' opt
+while getopts 'prcntlkyAIOFSwveh' opt
do
case $opt in
p) export GIT_PULL=true ;;
@@ -88,6 +90,7 @@ do
l) export SINGLE_THREADED=true ;;
k) export PACKAGE_ONLY=true ;;
y) export VERIFY_ONLY=true ;;
+ A) export ALL=true ;;
I) export ALL_EXCEPT_INCUBATOR=true ;;
F) export SKIP_SEARCH_FOR_FAILURES=true ;;
S) export SKIP_SUMMARY=true ;;
@@ -117,6 +120,7 @@ if [ "$VERBOSE" = "true" ]; then
echo "-k PACKAGE_ONLY : $PACKAGE_ONLY"
echo "-y VERIFY_ONLY : $VERIFY_ONLY"
echo "-O SKIP_OFFLINE : $SKIP_OFFLINE"
+ echo "-A ALL : $ALL"
echo "-I ALL_EXCEPT_INCUBATOR : $ALL_EXCEPT_INCUBATOR"
echo "-F SKIP_SEARCH_FOR_FAILURES : $SKIP_SEARCH_FOR_FAILURES"
echo "-S SKIP_SUMMARY : $SKIP_SUMMARY"
@@ -131,6 +135,12 @@ if [ "$PACKAGE_ONLY" = "true" ] && [ "$VERIFY_ONLY" =
"true" ]; then
exit 1
fi
+if [ "$ALL" = "true" ] && [ "$ALL_EXCEPT_INCUBATOR" = "true" ]; then
+ echo "$BASENAME_0 : cannot use '-A' and '-I' flags together" >&2
+ usage
+ exit 1
+fi
+
if [ "$VERBOSE" = "true" ] && [ "$EDIT" = "true" ]; then
echo "$BASENAME_0 : cannot use '-v' and '-e' flags together" >&2
usage
@@ -152,6 +162,10 @@ if [ "$TIMELINE" = "true" ]; then
OPTS="$OPTS -Dmaven-timeline.version=1.8-SNAPSHOT"
fi
+if [ "$ALL" = "true" ]; then
+ OPTS="$OPTS -Dmodule-all"
+fi
+
if [ "$ALL_EXCEPT_INCUBATOR" = "true" ]; then
OPTS="$OPTS -Dmodule-all-except-incubator"
fi