X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/c93b552db515c52afd92a6b4cc3a124b0dc30300..HEAD:/setup_env.bat?ds=sidebyside diff --git a/setup_env.bat b/setup_env.bat index 3f03856e..8ccfeee1 100644 --- a/setup_env.bat +++ b/setup_env.bat @@ -1,8 +1,51 @@ -git submodule init -git submodule update -call android.bat update project -p actionbarsherlock\library --target 1 -call android.bat update project -p . --target 1 -copy /Y third_party\android-support-library\android-support-v4.jar actionbarsherlock\library\libs\android-support-v4.jar -cd tests -android.bat update test-project -m .. -p . -cd .. +@echo off + +:: Use argument to decide which build system should be used +if "%1" == "gradle" goto initForGradle +if "%1" == "maven" goto initForMaven +if "%1" == "ant" goto initForAnt +goto invalidInput + +:initForGradle +echo "Executing Gradle setup..." +goto initDefault + +:initForMaven +echo "Executing Maven setup..." +goto initDefault + +:initForAnt +echo "Executing Ant setup..." +::If the directory exists the script has already been executed + +::Gets the owncloud-android-library +call git submodule init +call git submodule update + +call android.bat update project -p libs/android-support-appcompat-v7-exploded-aar --target android-22 +call android.bat update lib-project -p owncloud-android-library +call android.bat update project -p . +call android.bat update project -p oc_jb_workaround +call android.bat update test-project -p tests -m .. + +goto complete + +:initDefault +call git submodule init +call git submodule update +call android.bat update lib-project -p owncloud-android-library +call android.bat update project -p . +call android.bat update project -p oc_jb_workaround +call android.bat update test-project -p tests -m .. +goto complete + +:invalidInput +echo "Input argument invalid." +echo "Usage: %0 [ant | maven | gradle]." +goto exit + +:complete +echo "...setup complete." +goto exit + +:exit \ No newline at end of file