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
20 if not exist .\actionbarsherlock (
22 ::Gets the owncloud-android-library
23 call git submodule init
24 call git submodule update
26 ::Clones the actionbarsherlock and checks-out the right release (4.2.0)
27 git clone "https
://github.com
/JakeWharton
/ActionBarSherlock.git
" "actionbarsherlock
"
28 cd "actionbarsherlock
"
29 git checkout "90939dc3925ffaaa0de269bbbe1b35e274968ea1
"
32 call android.bat update project -p actionbarsherlock/library -n ActionBarSherlock --target android-19
33 call android.bat update lib-project -p owncloud-android-library
34 call android.bat update project -p .
35 call android.bat update project -p oc_jb_workaround
36 copy /Y third_party\android-support-library\android-support-v4.jar actionbarsherlock\library\libs\android-support-v4.jar
37 call android.bat update test-project -p tests -m ..
42 call git submodule init
43 call git submodule update
44 call android.bat update lib-project -p owncloud-android-library
45 call android.bat update project -p .
46 call android.bat update project -p oc_jb_workaround
47 call android.bat update test-project -p tests -m ..
51 echo "Input argument invalid.
"
52 echo "Usage
: %0 [ant | maven | gradle
].
"
56 echo "...setup complete.
"