Permalink
Browse files

Make 'install' the default goal of build.sh.

  • Loading branch information...
1 parent efe2dcc commit 2dd51d5cfa1d56a02c58f129fe676eebcaddd306 @OndraZizka OndraZizka committed with bstansberry Oct 27, 2011
Showing with 10 additions and 6 deletions.
  1. +10 −6 build.sh
View
16 build.sh
@@ -155,22 +155,26 @@ main() {
# to be in the same directory as build.xml.
cd $DIRNAME
- MVN_GOAL=$@
- if [ -z "$MVN_GOAL" ]; then
- MVN_GOAL="install"
- fi
. testsuite/groupDefs.sh
# Add smoke integration test directives before calling maven.
TESTS=$SMOKE_TESTS
+ MVN_GOAL="";
# For each parameter, check for testsuite directives.
for param in $@ ; do
case $param in
- -DallTests)
- TESTS=$ALL_TESTS ;;
+ -DallTests) TESTS=$ALL_TESTS ;;
+ -*) ;;
+ clean) MVN_GOAL="$MVN_GOAL$param ";;
+ test) MVN_GOAL="$MVN_GOAL$param ";;
+ install) MVN_GOAL="$MVN_GOAL$param ";;
+ deploy) MVN_GOAL="$MVN_GOAL$param ";;
+ site) MVN_GOAL="$MVN_GOAL$param ";;
esac
done
+ # Default goal if none specified.
+ if [ -z "$MVN_GOAL" ]; then MVN_GOAL="install"; fi
MVN_GOAL="$MVN_GOAL $TESTS"

0 comments on commit 2dd51d5

Please sign in to comment.