build.cmd 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. @echo off
  2. start mvn clean install -DskipTests
  3. echo "LTS: mvn clean install -DskipTests"
  4. echo "LTS: After sub window finished, close it , and press any key to continue" & pause>nul
  5. set VERSION=1.7.2-SNAPSHOT
  6. set BASE_HOME=%~dp0%
  7. set DIST_BIN_DIR=lts-%VERSION%-bin
  8. md "%BASE_HOME%\dist"
  9. md "%BASE_HOME%\dist\%DIST_BIN_DIR%"
  10. set LTS_Bin_Dir=%BASE_HOME%dist\%DIST_BIN_DIR%
  11. set Startup_Dir=%BASE_HOME%\lts-startup
  12. cd %Startup_Dir%
  13. start mvn clean assembly:assembly -DskipTests -Pdefault
  14. echo "LTS: mvn clean assembly:assembly -DskipTests -Pdefault"
  15. echo "LTS: After sub window finished, close it , and press any key to continue" & pause>nul
  16. xcopy /e /y "%Startup_Dir%\target\lts-bin\lts" "%LTS_Bin_Dir%"
  17. cd ..\..\
  18. cd %Startup_Dir%
  19. start mvn clean assembly:assembly -DskipTests -Plts-admin
  20. echo "LTS: mvn clean assembly:assembly -DskipTests -Plts-admin"
  21. echo "LTS: After sub window finished, close it , and press any key to continue" & pause>nul
  22. xcopy /e /y "%Startup_Dir%\target\lts-bin\lts\lib" "%LTS_Bin_Dir%\war\jetty\lib"
  23. cd ..\..\
  24. xcopy /e /y "%BASE_HOME%\lts-admin\target\lts-admin-%VERSION%.war" "%LTS_Bin_Dir%\war\lts-admin.war"
  25. cd ..\..\