-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathinstall.cmd
More file actions
67 lines (55 loc) · 1.47 KB
/
install.cmd
File metadata and controls
67 lines (55 loc) · 1.47 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
@echo off
rem start this file to install project into %STAFF_HOME%
set arch=%1%
if '%arch%' == '' (
echo.
echo Arch is not set. To install please enter
echo %0% ARCH
echo Where ARCH is either of `Win32` or `x64`.
echo.
goto errexit
)
if not '%arch%' == 'Win32' (
if not '%arch%' == 'x64' (
echo.
echo Error: Invalid arch set: [%arch%]. Supported architectures are: Win32, x64
goto errhelp
)
)
if "%STAFF_HOME%" == "" (
echo Error: STAFF_HOME is not set
goto errexit
)
if "%AXIS2C_HOME%" == "" (
echo Error: AXIS2C_HOME is not set
goto errexit
)
set staffdeploydir=%cd%\staff\deploy\win_%arch%
set dasdeploydir=%cd%\das\deploy\win_%arch%
if not exist %STAFF_HOME% mkdir %STAFF_HOME%
echo installing axis2/c staff modules and service...
xcopy /Y /S %staffdeploydir%\axis2 %AXIS2C_HOME% >>install.log
if %ERRORLEVEL% gtr 0 (
echo Failed to install axis2 staff modules and service >&2
echo Please see install.log >&2
goto errexit
)
echo installing staff...
xcopy /Y /S %staffdeploydir%\staff %STAFF_HOME% >>install.log
if %ERRORLEVEL% gtr 0 (
echo Failed to install staff >&2
echo Please see install.log >&2
goto errexit
)
echo installing das...
xcopy /Y /S %dasdeploydir%\staff %STAFF_HOME% >>install.log
if %ERRORLEVEL% gtr 0 (
echo Failed to install das >&2
echo Please see install.log >&2
goto errexit
)
echo installation succesful
goto exit
:errexit
pause
:exit