ulfben

Android Studio project folder cleanup

Feb 5th, 2017
149
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @rem  ##########################################################################
  2. @rem
  3. @rem  Clean Android Studio project folders for distribution
  4. @rem
  5. @rem  ##########################################################################
  6.  
  7. echo off
  8. CLS
  9. echo _________________________________________
  10. echo Android Studio project folder export
  11. echo _________________________________________
  12. echo
  13. echo If directory name includes space
  14. echo - surround name with quotes
  15. echo _________________________________________
  16. set /p dirname= Dir name to export :
  17. if %dirname% == "" goto ERROR
  18. set str=%dirname%
  19. mkdir c:\EXPORT\%str%
  20. pause
  21. xcopy %dirname% c:\EXPORT\%str% /s
  22. del c:\EXPORT\%str%\*.iml
  23. del c:\EXPORT\%str%\app\*.apk
  24. rmdir c:\EXPORT\%str%\.gradle /s /q
  25. rmdir c:\EXPORT\%str%\.idea /s /q
  26. rmdir c:\EXPORT\%str%\build /s /q
  27. erase c:\EXPORT\%str%\app\build /f /s /q
  28. rmdir c:\EXPORT\%str%\app\build /s /q
  29. pause
  30. goto END
  31. :ERROR
  32. echo Cannot create, check the directory root
  33. goto OUT
  34. :END
  35. CLS
  36. echo _________________________________________
  37. echo  Android Studio project folder export
  38. echo _________________________________________
  39. echo Export ended, check c:\EXPORT
  40. :OUT
  41. pause
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×