aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@yahoo-inc.com>2017-05-05 15:25:06 +0200
committerHåkon Hallingstad <hakon@yahoo-inc.com>2017-05-05 15:25:06 +0200
commit99a615c30dedb7dd2bc70e40cabf0772f336867a (patch)
tree4cbac78fc3a590833c0c0455e515daefe32fae8f /bootstrap.sh
parent7b9ac73162a1e39aa02ffbaaece92ac27e74d25f (diff)
Make "java" mode like (former) "java-build": Will build everything unless passed e.g. -pl orchestrator
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh23
1 files changed, 9 insertions, 14 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 9548e547aa4..3a4625cbaf0 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -12,11 +12,9 @@ elif [ "$1" = "full" ]; then
# Build all java modules required by C++ testing
MODE=full
elif [ "$1" = "java" ]; then
- # Build minial set of java modules requires to run mvn install from the source root
+ # Build minial set of java modules, then run mvn install with arguments $2,
+ # $3, etc.
MODE=java
-elif [ "$1" = "java-build" ]; then
- # Bootstrap as with "java", then build by passing $2 $3 ... to mvn.
- MODE=java-build
elif [ "$1" = "default" ]; then
MODE=default
elif [ "$1" = "-h" -o "$1" = "--help" ]; then
@@ -53,9 +51,10 @@ $top/dist/getversion.pl -M $top > $top/dist/vtag.map
# building of several of these into fewer commands to save time.
#
# After bootstrapping, the following mvn command must use -rf to avoid building
-# the plugins again: java-build helps remembering this. So to bootstrap the
-# building of the orchestrator modules and all of its dependencies, do:
-# 'bootstrap.sh java-build -pl orchestrator'.
+# the plugins again: The 'java' mode runs mvn install with the correct -rf. So
+# to bootstrap the building of the orchestrator modules and all of its
+# dependencies, do: 'bootstrap.sh java -pl orchestrator'. To build everything
+# do 'bootstrap.sh java'.
# Note: Why not just 'mvn_install -am -pl bundle-plugin'? Because on
# Screwdriver (not locally), mvn fails to resolve bundle-plugin while parsing
@@ -75,14 +74,10 @@ done
mvn_install -am -rf configgen -pl config-class-plugin
case "$MODE" in
- java*)
+ java)
mvn_install -am -rf yolean -pl vespajlib
-
- if test "$MODE" == java-build
- then
- shift
- mvn_install -rf config-lib -am "$@"
- fi
+ shift
+ mvn_install -rf config-lib -am "$@"
;;
full)
mvn_install -am -pl filedistributionmanager,jrt,linguistics,messagebus -rf yolean