-
Notifications
You must be signed in to change notification settings - Fork 11
/
updateall.bat
128 lines (112 loc) · 2.97 KB
/
updateall.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@echo off
set LOGFILE=%CD%\updateall_log.txt
echo LOG-file: %LOGFILE%
call :SCRIPT > %LOGFILE% 2>&1
exit /B
:SCRIPT
echo START %date% %time%
cd %0\..\..
echo Git updates...
set skipTests=false
set buildSnapEngine=true
set buildSnapDesktop=true
set buildMwvTBX=true
set buildOptTBX=true
set buildSMOSBOX=true
set buildSnapExamples=false
if exist snap-engine\.git (
cd snap-engine
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist snap-desktop\.git (
cd snap-desktop
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist snap-installer\.git (
cd snap-installer
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist microwave-toolbox\.git (
cd microwave-toolbox
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist optical-toolbox\.git (
cd optical-toolbox
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist smos-box\.git (
cd smos-box
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist snap-examples\.git (
cd snap-examples
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
echo Maven builds...
call mvn -v
if exist snap-engine\pom.xml if %buildSnapEngine% EQU true (
cd snap-engine
call mvn clean install -T 8 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist snap-desktop\pom.xml if %buildSnapDesktop% EQU true (
cd snap-desktop
call mvn clean install -T 8 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd snap-application
call mvn nbm:cluster-app
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..\..
)
if exist microwave-toolbox\pom.xml if %buildMwvTBX% EQU true (
cd microwave-toolbox
call mvn clean install -T 8 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist optical-toolbox\pom.xml if %buildOptTBX% EQU true (
cd optical-toolbox
call mvn clean install -T 8 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist smos-box\pom.xml if %buildSMOSBOX% EQU true (
cd smos-box
call mvn clean install -T 8 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist snap-examples\pom.xml if %buildSnapExamples% EQU true (
cd snap-examples
call mvn clean install -T 8 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
echo STOP %date% %time%