forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-test-liferay-sample-workspace.xml
56 lines (42 loc) · 1.82 KB
/
build-test-liferay-sample-workspace.xml
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
<?xml version="1.0"?>
<project basedir="." name="portal-test-liferay-sample-workspace" xmlns:antelope="antlib:ise.antelope.tasks">
<property name="workspace.name" value="liferay-sample-workspace" />
<import file="build-test-workspace.xml" />
<target name="start-liferay-sample-etc-cron">
<condition else="default" property="virtual.instance.id" value="${virtual.instance.id}">
<isset property="virtual.instance.id" />
</condition>
<start-spring-boot-client-extension
spring.boot.application.name="SampleSpringBootApplication"
virtual.instance.id="${virtual.instance.id}"
workspace.client.extension.name="liferay-sample-etc-cron"
/>
</target>
<target name="start-liferay-sample-etc-spring-boot">
<condition else="default" property="virtual.instance.id" value="${virtual.instance.id}">
<isset property="virtual.instance.id" />
</condition>
<start-spring-boot-client-extension
spring.boot.application.name="SampleSpringBootApplication"
virtual.instance.id="${virtual.instance.id}"
wait.for.ready="true"
workspace.client.extension.name="liferay-sample-etc-spring-boot"
/>
</target>
<target name="start-workspace">
<deploy-workspace-client-extensions />
<antcall target="start-liferay-sample-etc-cron" />
<antcall target="start-liferay-sample-etc-spring-boot" />
</target>
<target name="stop-liferay-sample-etc-cron">
<stop-spring-boot-client-extension spring.boot.application.name="SampleSpringBootApplication" />
</target>
<target name="stop-liferay-sample-etc-spring-boot">
<stop-spring-boot-client-extension spring.boot.application.name="SampleSpringBootApplication" />
</target>
<target name="stop-workspace">
<antcall target="stop-liferay-sample-etc-cron" />
<antcall target="stop-liferay-sample-etc-spring-boot" />
<undeploy-workspace-client-extensions />
</target>
</project>