delivery.bat 1.57 KB
#------------------------------------------------------------------------------
# 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