/
install64.bat
35 lines (25 loc) · 1.04 KB
/
install64.bat
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
@echo off
set INSTALL_DIR=C:\entermedia
if exist "%INSTALL_DIR%" (
rmdir /S "%INSTALL_DIR%"
)
md %INSTALL_DIR%
md %INSTALL_DIR%\webapp\ROOT
echo "Downloading Entermedia ROOT.zip..."
.\misc\wget http://dev.entermediasoftware.com/jenkins/view/Demo/job/demoall/lastSuccessfulBuild/artifact/deploy/ROOT.war -O ROOT.zip
move ROOT.zip %INSTALL_DIR%\webapp\ROOT\
echo "Unzipping ROOT.zip..."
call "misc\unzip.bat"
echo "Removing ROOT.zip file..."
del "%INSTALL_DIR%\webapp\ROOT\ROOT.zip"
echo "Copying dependencies..."
xcopy /S /I /E "webapp\WEB-INF\bin\windows" "%INSTALL_DIR%\webapp\ROOT\WEB-INF\bin\windows"
if exist "%INSTALL_DIR%\webapp\WEB-INF\bin\commandmap.xml" (
del "%INSTALL_DIR%\webapp\WEB-INF\bin\commandmap.xml"
)
copy "webapp\WEB-INF\bin\commandmap.xml" "%INSTALL_DIR%\webapp\ROOT\WEB-INF\bin\commandmap.xml"
xcopy /S /I /E "tomcat" "%INSTALL_DIR%\tomcat"
echo "Setting up Environmental Variables..."
setx -m CATALINA_HOME "%INSTALL_DIR%\tomcat"
echo "Installing Tomcat8 Service..."
call "%INSTALL_DIR%\tomcat\bin\service.bat install"