SHARE
TWEET

Android Studio project folder cleanup

ulfben Feb 5th, 2017 84 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
Top