forked from senbox-org/snap-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdateall_impl.bat
More file actions
158 lines (148 loc) · 3.9 KB
/
Copy pathupdateall_impl.bat
File metadata and controls
158 lines (148 loc) · 3.9 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
echo %date% %time%
cd %0\..\..
echo Git updates...
set skipTests=true
set buildSnapEngine=true
set buildSnapDesktop=true
set buildSnapExamples=false
set buildS1TBX=false
set buildS2TBX=false
set buildS3TBX=false
set buildSMOSBOX=false
set buildProbavBox=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-examples\.git (
cd snap-examples
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 s1tbx\.git (
cd s1tbx
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist s2tbx\.git (
cd s2tbx
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist s3tbx\.git (
cd s3tbx
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 probavbox\.git (
cd probavbox
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist testdata\.git (
cd testdata
call git pull
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
echo Maven builds...
if exist snap-engine\pom.xml if %buildSnapEngine% EQU true (
cd snap-engine
call mvn clean install -T 4 -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 4 -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 snap-examples\pom.xml if %buildSnapExamples% EQU true (
cd snap-examples
call mvn clean install -T 4 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist s1tbx\pom.xml if %buildS1TBX% EQU true (
cd s1tbx
call mvn clean
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn install -T 4 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist s2tbx\pom.xml if %buildS2TBX% EQU true (
cd s2tbx
call mvn clean install -T 4 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd s2tbx-sta-adapters\sen2cor
call mvn clean install -T 4 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..\..\..
)
if exist s3tbx\pom.xml if %buildS3TBX% EQU true (
cd s3tbx
call mvn clean install -T 4 -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 4 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
if exist probavbox\pom.xml if %buildProbavBox% EQU true (
cd probavbox
call mvn clean install -T 4 -DskipTests=%skipTests%
if %errorlevel% neq 0 exit /B %errorlevel%
call mvn nbm:autoupdate
if %errorlevel% neq 0 exit /B %errorlevel%
cd ..
)
echo %date% %time%