Skip to content

Commit 9d61045

Browse files
committed
Fixed #367 #368 #369, add condition for zstack-network and zstack-distro
1 parent 3a19fa8 commit 9d61045

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

zstackbuild/build.xml

+16-3
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@
193193
<echo message="successfully build zstack.war at ${war.file}" />
194194
</target>
195195

196+
<target name="build-zstack-network-on-condition" if="${build.zstack.network}">
197+
<antcall target="build-zstack-network" />
198+
</target>
199+
200+
<target name="assemble-zstack-network-on-condition" if="${build.zstack.network}">
201+
<antcall target="assemble-zstack-network" />
202+
</target>
203+
204+
<target name="check-zstack-distro-on-condition" if="${check.zstack.distro}">
205+
<antcall target="check-zstack-distro" />
206+
</target>
207+
196208
<!-- For UI 1.x -->
197209
<target name="build-zstack-dashboard-on-condition" unless="${build.zstack.ui.war}">
198210
<antcall target="build-zstack-dashboard" />
@@ -214,6 +226,7 @@
214226
<target name="help">
215227
<echo message="usage: ant [build-war|package|all|build-vr] -Dzstack_build_root=YOUR_ZSTACK_PACKAGE_ROOT" />
216228
<echo message="[zstack_build_root] default path is /usr/local/zstack/root/, which is defined in build.properties. It should be the same parent folder for zstack-utility and zstack-woodpecker." />
229+
<echo message="[zstack_build_root] path now is ${zstack_build_root}" />
217230
</target>
218231

219232
<target name="do-build" depends="prepare, build-zstack-war" >
@@ -276,10 +289,10 @@
276289
<antcall target="build-zstack-vyos"/>
277290
</sequential>
278291
<sequential>
279-
<antcall target="build-zstack-network"/>
292+
<antcall target="build-zstack-network-on-condition"/>
280293
</sequential>
281294
<sequential>
282-
<antcall target="check-zstack-distro"/>
295+
<antcall target="check-zstack-distro-on-condition"/>
283296
</sequential>
284297
</parallel>
285298
</target>
@@ -353,7 +366,7 @@
353366
<antcall target="assemble-zstack-vyos"/>
354367
</sequential>
355368
<sequential>
356-
<antcall target="assemble-zstack-network"/>
369+
<antcall target="assemble-zstack-network-on-condition"/>
357370
</sequential>
358371
</parallel>
359372

0 commit comments

Comments
 (0)