Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.63 KB | None | 0 0
  1. @echo off
  2. set /p Input=Enter version number:
  3. (echo application_name=GrowUp& echo app_version=%Input%) > %CD%\GrowUp-web\src\main\resources\i18n\application.properties
  4. call mvn versions:set -DnewVersion=%Input% -DgenerateBackupPoms=false
  5. cd GrowUp-web
  6. call mvn versions:set -DnewVersion=%Input% -DgenerateBackupPoms=false
  7.  
  8. :: Git
  9. set /p ifGit=Do you want to commit changes? y or Enter press:
  10. IF /i "%ifGit%"=="y" goto gitPart
  11. IF /i "%ifGit%"=="1" goto gitPart
  12.  
  13. goto commonexit
  14.  
  15. :gitPart
  16. cd ..
  17. git add **/pom.xml **/application.properties pom.xml
  18. git commit -m "Updated version to %Input%"
  19. goto commonexit
  20.  
  21. :commonexit
  22. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement