setup_env.bat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @echo off
  2. :: Use argument to decide which build system should be used
  3. if "%1" == "gradle" goto initForGradle
  4. if "%1" == "ant" goto initForAnt
  5. goto invalidInput
  6. :initForGradle
  7. echo "Executing Gradle setup..."
  8. goto initDefault
  9. :initForAnt
  10. echo "Executing Ant setup..."
  11. ::If the directory exists the script has already been executed
  12. ::Gets the owncloud-android-library
  13. call git submodule init
  14. call git submodule update
  15. call android.bat update project -p libs/android-support-appcompat-v7-exploded-aar --target android-23
  16. call android.bat update project -p libs/android-support-design-exploded-aar --target android-23
  17. call android.bat update project -p libs/com-getbase-floatingactionbutton-1-10-1-exploded-aar --target android-22
  18. call android.bat update lib-project -p owncloud-android-library
  19. call android.bat update project -p .
  20. call android.bat update project -p oc_jb_workaround
  21. call android.bat update test-project -p tests -m ..
  22. goto complete
  23. :initDefault
  24. call git submodule init
  25. call git submodule update
  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 ..
  30. goto complete
  31. :invalidInput
  32. echo "Input argument invalid."
  33. echo "Usage: %0 [ant | gradle]."
  34. goto exit
  35. :complete
  36. echo "...setup complete."
  37. goto exit
  38. :exit