delivery.bat
1.57 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#------------------------------------------------------------------------------
# NAME : delivery.bat
# FUNCTION : PSWS PropTool delivery program
# ORIGIN : GFI Informatique
# PROJECT :
# PARAMETERS :
#------------------------------------------------------------------------------
# HISTORY
# VERSION : 25/01/2017 : SCA
# Creation
# END-HISTORY
# -----------------------------------------------------------------------------
################
@echo off
SET VERSION=2.2.0
#SET WAR_NAME=PropagationTool
SET WAR_NAME=ESSAI
SET WKSP=D:\Workspaces\WkspPT\PropTool
SET tar="C:\Program Files"\7-Zip\7z a -ttar
SET gzip="C:\Program Files"\7-Zip\7z a -tgzip
SET TAR_NAME=PropagationTool_V%VERSION%
SET PSWS_NAME=psws_V%VERSION%
echo create DPC V%VERSION% ...
rmdir /S /Q psws
mkdir psws
cd psws
mkdir install
mkdir server
cd server
mkdir dpc
cd dpc
mkdir conf
mkdir dist
mkdir lib
mkdir scripts
copy %WKSP%\dpc\conf\*.properties conf
copy %WKSP%\dpc\target\*.jar dist
copy %WKSP%\dpc\target\dependency\*.jar lib
copy %WKSP%\dpc\scripts\*.ksh scripts
cd ..\..
copy %WKSP%\dpc\install\env_psws install
copy %WKSP%\dpc\install\init_psws.ksh install
cd ..
copy %WKSP%\dpc\install\auto_gene_psws.ksh .
copy %WKSP%\server\target\PropagationTool.war %WAR_NAME%.war
%tar% %PSWS_NAME%.tar psws
%gzip% %PSWS_NAME%.tar.gz %PSWS_NAME%.tar
%tar% %TAR_NAME%.tar %PSWS_NAME%.tar.gz auto_gene_psws.ksh %WAR_NAME%.war
%gzip% %TAR_NAME%.tar.gz %TAR_NAME%.tar
rmdir /S /Q psws
del %PSWS_NAME%.tar.gz
del %PSWS_NAME%.tar
del %TAR_NAME%.tar
del %WAR_NAME%.war
del auto_gene_psws.ksh
echo ===== All done !! ======
pause