Skip to content
Browse files

Pass additional -... params from build.sh to mvn.

  • Loading branch information...
1 parent 2dd51d5 commit c7e20716c3d1ba4cb74ba19729ce90e380a9f49b @OndraZizka OndraZizka committed with bstansberry Oct 27, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 build.sh
View
9 build.sh
@@ -161,11 +161,12 @@ main() {
# Add smoke integration test directives before calling maven.
TESTS=$SMOKE_TESTS
MVN_GOAL="";
+ ADDIT_PARAMS="";
# For each parameter, check for testsuite directives.
for param in $@ ; do
case $param in
-DallTests) TESTS=$ALL_TESTS ;;
- -*) ;;
+ -*) ADDIT_PARAMS="$ADDIT_PARAMS $param";;
clean) MVN_GOAL="$MVN_GOAL$param ";;
test) MVN_GOAL="$MVN_GOAL$param ";;
install) MVN_GOAL="$MVN_GOAL$param ";;
@@ -181,13 +182,13 @@ main() {
# Export some stuff for maven.
export MVN MAVEN_HOME MVN_OPTS MVN_GOAL
- echo "$MVN $MVN_OPTIONS $MVN_GOAL"
+ echo "$MVN $MVN_OPTIONS $MVN_GOAL $ADDIT_PARAMS"
# Execute in debug mode, or simply execute.
if [ "x$MVN_DEBUG" != "x" ]; then
- /bin/sh -x $MVN $MVN_OPTIONS $MVN_GOAL
+ /bin/sh -x $MVN $MVN_OPTIONS $MVN_GOAL $ADDIT_PARAMS
else
- exec $MVN $MVN_OPTIONS $MVN_GOAL
+ exec $MVN $MVN_OPTIONS $MVN_GOAL $ADDIT_PARAMS
fi
}

0 comments on commit c7e2071

Please sign in to comment.
Something went wrong with that request. Please try again.