forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test-tomcat.xml
66 lines (52 loc) · 1.62 KB
/
build-test-tomcat.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
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<project basedir="." default="test" name="portal-test-tomcat" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="run-selenium-tomcat">
<lstopwatch action="start" name="run.selenium.tomcat" />
<app-server-properties-update>
app.server.type=tomcat
</app-server-properties-update>
<set-tomcat-version-number liferay.portal.bundle="${liferay.portal.bundle}" />
<if>
<not>
<isset property="build.app.server" />
</not>
<then>
<ant antfile="build-dist.xml" target="build-dist-tomcat" />
</then>
</if>
<antcall target="record-test-generated-properties" />
<if>
<isset property="vm.host" />
<then>
<replace
file="portal-web/test/test-portal-web.properties"
token="#vm.host="
value="vm.host=${vm.host}"
/>
</then>
</if>
<antcall inheritAll="false" target="setup-testable-tomcat" />
<antcall target="prepare-virtual-host-name-properties" />
<if>
<isset property="test.base.dir.name" />
<then>
<antcall inheritAll="false" target="run-tomcat">
<param name="test.base.dir.name" value="${test.base.dir.name}" />
<param name="test.class" value="${test.class}" />
</antcall>
</then>
<else>
<antcall inheritAll="false" target="run-tomcat">
<param name="test.class" value="${test.class}" />
</antcall>
</else>
</if>
<lstopwatch action="total" name="run.selenium.tomcat" />
</target>
<target name="run-tomcat">
<lstopwatch action="start" name="run.tomcat" />
<antcall target="run-simple-server" />
<lstopwatch action="total" name="run.tomcat" />
</target>
</project>