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 lib-project -p owncloud-android-library
27 call android.bat update project -p .
28 call android.bat update project -p oc_jb_workaround
29 call android.bat update test-project -p tests -m ..
34 call git submodule init
35 call git submodule update
36 call android.bat update lib-project -p owncloud-android-library
37 call android.bat update project -p .
38 call android.bat update project -p oc_jb_workaround
39 call android.bat update test-project -p tests -m ..
43 echo "Input argument invalid.
"
44 echo "Usage
: %0 [ant | maven | gradle
].
"
48 echo "...setup complete.
"