Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 2dd51d5cfa1d56a02c58f129fe676eebcaddd306 1 parent efe2dcc
Ondrej Zizka authored October 27, 2011 bstansberry committed November 10, 2011

Showing 1 changed file with 10 additions and 6 deletions. Show diff stats Hide diff stats

  1. 16  build.sh
16  build.sh
@@ -155,22 +155,26 @@ main() {
155 155
     #  to be in the same directory as build.xml.
156 156
     cd $DIRNAME
157 157
 
158  
-    MVN_GOAL=$@
159  
-    if [ -z "$MVN_GOAL" ]; then
160  
-        MVN_GOAL="install"
161  
-    fi
162 158
 
163 159
     . testsuite/groupDefs.sh
164 160
 
165 161
     #  Add smoke integration test directives before calling maven.
166 162
     TESTS=$SMOKE_TESTS
  163
+    MVN_GOAL="";
167 164
     #  For each parameter, check for testsuite directives.
168 165
     for param in $@ ; do
169 166
         case $param in
170  
-            -DallTests)
171  
-                TESTS=$ALL_TESTS ;;
  167
+            -DallTests)  TESTS=$ALL_TESTS ;;
  168
+            -*) ;;
  169
+            clean) MVN_GOAL="$MVN_GOAL$param ";;
  170
+            test) MVN_GOAL="$MVN_GOAL$param ";;
  171
+            install) MVN_GOAL="$MVN_GOAL$param ";;
  172
+            deploy) MVN_GOAL="$MVN_GOAL$param ";;
  173
+            site) MVN_GOAL="$MVN_GOAL$param ";;
172 174
         esac
173 175
     done
  176
+    #  Default goal if none specified.
  177
+    if [ -z "$MVN_GOAL" ]; then MVN_GOAL="install"; fi
174 178
 
175 179
     MVN_GOAL="$MVN_GOAL $TESTS"
176 180
 

0 notes on commit 2dd51d5

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