3 :: Use argument to decide which build system should be used
4 if "%1" == "gradle
" goto initForGradle
5 if "%1" == "maven" goto initForMaven
6 if "%1" == "ant
" goto initForAnt
10 echo "Executing Gradle setup...
"
14 echo "Executing Maven setup...
"
18 echo "Executing Ant setup...
"
19 ::If the directory exists the script has already been executed
21 ::Gets the owncloud-android-library
22 call git submodule init
23 call git submodule update
25 call android.bat update project -p libs/android-support-appcompat-v7-exploded-aar --target android-22
26 call android.bat update project -p libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar --target android-22
27 call android.bat update lib-project -p owncloud-android-library
28 call android.bat update project -p .
29 call android.bat update project -p oc_jb_workaround
30 call android.bat update test-project -p tests -m ..
35 call git submodule init
36 call git submodule update
37 call android.bat update lib-project -p owncloud-android-library
38 call android.bat update project -p .
39 call android.bat update project -p oc_jb_workaround
40 call android.bat update test-project -p tests -m ..
44 echo "Input argument invalid.
"
45 echo "Usage
: %0 [ant | maven | gradle
].
"
49 echo "...setup complete.
"