forked from ninject/Ninject
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Build-NinjectAndExtensions.bat
259 lines (236 loc) · 6.8 KB
/
Build-NinjectAndExtensions.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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
SET NoPause=true
mkdir ..\dist-all
del /S /Q ..\dist-all\*
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
IF NOT EXIST .\ninject.extensions.factory GOTO ENDFACTORY
cd ninject.extensions.factory
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDFACTORY
IF NOT EXIST .\ninject.extensions.contextpreservation GOTO ENDCTXPRESERVATION
cd ninject.extensions.contextpreservation
del lib\Ninject\*.zip
del lib\Ninject.Extensions.Factory\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
copy ..\Ninject.Extensions.Factory\dist\*.zip lib\Ninject.Extensions.Factory
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDCTXPRESERVATION
IF NOT EXIST .\ninject.extensions.namedscope GOTO ENDNSC
cd ninject.extensions.namedscope
del lib\Ninject\*.zip
del lib\Ninject.Extensions.ContextPreservation\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
copy ..\ninject.extensions.contextpreservation\dist\*.zip lib\ninject.extensions.contextpreservation
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDNSC
IF NOT EXIST .\ninject.extensions.childkernel GOTO ENDCK
cd ninject.extensions.childkernel
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDCK
IF NOT EXIST .\ninject.extensions.bbveventbroker GOTO ENDBBVEB
cd ninject.extensions.bbveventbroker
del lib\Ninject\*.zip
del lib\Ninject.Extensions.ContextPreservation\*.zip
del lib\Ninject.Extensions.NamedScope\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
copy ..\ninject.extensions.contextpreservation\dist\*.zip lib\ninject.extensions.contextpreservation
copy ..\ninject.extensions.namedscope\dist\*.zip lib\ninject.extensions.namedscope
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDBBVEB
IF NOT EXIST .\ninject.extensions.dependencycreation GOTO ENDDC
cd ninject.extensions.dependencycreation
del lib\Ninject\*.zip
del lib\Ninject.Extensions.ContextPreservation\*.zip
del lib\Ninject.Extensions.NamedScope\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
copy ..\ninject.extensions.contextpreservation\dist\*.zip lib\ninject.extensions.contextpreservation
copy ..\ninject.extensions.namedscope\dist\*.zip lib\ninject.extensions.namedscope
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDDC
IF NOT EXIST .\ninject.extensions.conventions GOTO ENDCONV
cd ninject.extensions.conventions
del lib\Ninject\*.zip
del lib\Ninject.Extensions.Factory\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
copy ..\Ninject.Extensions.Factory\dist\*.zip lib\Ninject.Extensions.Factory
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDCONV
IF NOT EXIST ninject.extensions.interception GOTO ENDIC
cd ninject.extensions.interception
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDIC
IF NOT EXIST .\ninject.extensions.logging GOTO ENDLOG
cd ninject.extensions.logging
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDLOG
IF NOT EXIST .\ninject.extensions.messagebroker GOTO ENDMB
cd ninject.extensions.messagebroker
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDMB
IF NOT EXIST .\ninject.extensions.wf GOTO ENDWF
cd ninject.extensions.wf
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDWF
IF NOT EXIST .\ninject.extensions.weakeventmessagebroker GOTO ENDWEAKEB
cd ninject.extensions.weakeventmessagebroker
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDWEAKEB
IF NOT EXIST .\ninject.extensions.xml GOTO ENDXML
cd ninject.extensions.xml
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDXML
IF NOT EXIST .\ninject.mockingkernel GOTO ENDMK
cd ninject.mockingkernel
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDMK
IF NOT EXIST .\ninject.web.common GOTO ENDWEBCOMMON
cd ninject.web.common
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDWEBCOMMON
IF NOT EXIST .\ninject.extensions.wcf GOTO ENDWCF
cd ninject.extensions.wcf
del lib\Ninject\*.zip
del lib\Ninject.Web.Common\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
copy ..\ninject.web.common\dist\*.zip lib\ninject.web.common
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDWCF
IF NOT EXIST .\ninject.web GOTO ENDWEB
cd ninject.web
del lib\Ninject\*.zip
del lib\Ninject.Web.Common\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
copy ..\ninject.web.common\dist\*.zip lib\ninject.web.common
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDWEB
:MVC
IF NOT EXIST .\ninject.web.mvc GOTO ENDMVC
cd ninject.web.mvc
del lib\Ninject\*.zip
del lib\Ninject.Web.Common\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
copy ..\ninject.web.common\dist\*.zip lib\ninject.web.common
cd mvc1
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\..\dist-all
cd ..
cd mvc2
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\..\dist-all
cd ..
cd mvc3
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\..\dist-all
cd ..
cd ..
:ENDMVC
IF NOT EXIST .\ninject.web.mvc.fluentvalidation GOTO ENDMVCFV
cd ninject.web.mvc.fluentvalidation
del lib\Ninject\*.zip
copy ..\Ninject\dist\*.zip lib\Ninject
call UnzipDependencies.cmd
call build-release.cmd
IF ERRORLEVEL 1 GOTO FAILED
xcopy /S dist\* ..\dist-all
cd ..
:ENDMVCFV
pause
goto END
:FAILED
cd ..
pause
:END