-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
build.cmd
34 lines (25 loc) · 1.12 KB
/
build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
start mvn clean install -DskipTests
echo "LTS: mvn clean install -DskipTests"
echo "LTS: After sub window finished, close it , and press any key to continue" & pause>nul
set VERSION=1.7.2-SNAPSHOT
set BASE_HOME=%~dp0%
set DIST_BIN_DIR=lts-%VERSION%-bin
md "%BASE_HOME%\dist"
md "%BASE_HOME%\dist\%DIST_BIN_DIR%"
set LTS_Bin_Dir=%BASE_HOME%dist\%DIST_BIN_DIR%
set Startup_Dir=%BASE_HOME%\lts-startup
cd %Startup_Dir%
start mvn clean assembly:assembly -DskipTests -Pdefault
echo "LTS: mvn clean assembly:assembly -DskipTests -Pdefault"
echo "LTS: After sub window finished, close it , and press any key to continue" & pause>nul
xcopy /e /y "%Startup_Dir%\target\lts-bin\lts" "%LTS_Bin_Dir%"
cd ..\..\
cd %Startup_Dir%
start mvn clean assembly:assembly -DskipTests -Plts-admin
echo "LTS: mvn clean assembly:assembly -DskipTests -Plts-admin"
echo "LTS: After sub window finished, close it , and press any key to continue" & pause>nul
xcopy /e /y "%Startup_Dir%\target\lts-bin\lts\lib" "%LTS_Bin_Dir%\war\jetty\lib"
cd ..\..\
xcopy /e /y "%BASE_HOME%\lts-admin\target\lts-admin-%VERSION%.war" "%LTS_Bin_Dir%\war\lts-admin.war"
cd ..\..\