File tree 2 files changed +29
-2
lines changed
2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 30
30
scala /dependency-reduced-pom.xml
31
31
build /runtime /
32
32
build /tools /
33
+ build /examples /
33
34
* .log
34
35
lib /
35
36
Original file line number Diff line number Diff line change @@ -133,6 +133,32 @@ popd
133
133
pushd " %CMDHOME% \..\examples"
134
134
call Clean.cmd
135
135
call Build.cmd
136
+
137
+ set EXAMPLES_HOME = %CMDHOME% \examples
138
+ @ echo set EXAMPLES_HOME=%EXAMPLES_HOME%
139
+
140
+ if EXIST " %EXAMPLES_HOME% " (
141
+ @ echo Delete existing %EXAMPLES_HOME% ...
142
+ rd /s /q " %EXAMPLES_HOME% "
143
+ )
144
+ if NOT EXIST " %EXAMPLES_HOME% " mkdir " %EXAMPLES_HOME% "
145
+
146
+ set CURRDIR = %cd%
147
+ for /f " delims=" %%D in ('dir /b /s bin') do call :copyexamples %%D
148
+ goto :copyscripts
149
+
150
+ :copyexamples
151
+ set EXAMPLES_SRC = %1
152
+ set EXAMPLES_TARGET = %1
153
+ call set EXAMPLES_TARGET = %% EXAMPLES_TARGET:%CURRDIR% =%EXAMPLES_HOME% %%
154
+ set EXAMPLES_TARGET = %EXAMPLES_TARGET:~0 ,-3 %
155
+
156
+ @ echo mkdir %EXAMPLES_TARGET%
157
+ if NOT EXIST " %EXAMPLES_TARGET% " mkdir " %EXAMPLES_TARGET% "
158
+ copy /y " %EXAMPLES_SRC% \Release\*" " %EXAMPLES_TARGET% "
159
+ goto :eof
160
+
161
+ :copyscripts
136
162
popd
137
163
138
164
@ echo Assemble SparkCLR script components
@@ -150,8 +176,8 @@ if not defined ProjectVersion (
150
176
set SPARKCLR_NAME = spark-clr_2.10-%ProjectVersion%
151
177
152
178
@ rem Create the zip file
153
- @ echo 7z a .\target\%SPARKCLR_NAME% .zip runtime localmode ..\ examples
154
- 7z a .\target\%SPARKCLR_NAME% .zip runtime localmode ..\ examples
179
+ @ echo 7z a .\target\%SPARKCLR_NAME% .zip runtime localmode examples
180
+ 7z a .\target\%SPARKCLR_NAME% .zip runtime localmode examples
155
181
156
182
:distdone
157
183
popd
You can’t perform that action at this time.
0 commit comments