forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test-tcat.xml
75 lines (56 loc) · 1.84 KB
/
build-test-tcat.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
67
68
69
70
71
72
73
74
75
<?xml version="1.0"?>
<project name="portal-test-tcat" basedir="." default="test" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="run-selenium-tcat">
<app-server-properties-update>
app.server.type=tomcat
</app-server-properties-update>
<echo file="test.${user.name}.properties" append="true">
tcat.enabled=true
</echo>
<if>
<not>
<isset property="build.app.server" />
</not>
<then>
<echo file="${lp.plugins.dir}/build.${user.name}.properties">app.server.tomcat.dir=${app.server.parent.dir}/tomcat-7.0.39
plugins.includes=marketplace-portlet</echo>
<antcall target="zip-portal-war" />
<ant antfile="build-dist.xml" target="build-dist-tcat" />
</then>
</if>
<replace
file="${app.server.tcat.admin.bin.dir}/startup.bat"
token="CATALINA_HOME=%CURRENT_DIR%"
value="CATALINA_HOME=${app.server.tcat.admin.dir}"
/>
<replace
file="${app.server.tcat.agent.bin.dir}/startup.bat"
token="CATALINA_HOME=%CURRENT_DIR%"
value="CATALINA_HOME=${app.server.tcat.agent.dir}"
/>
<chmod perm="a+x">
<fileset dir="${app.server.tcat.admin.bin.dir}">
<include name="*.sh" />
</fileset>
</chmod>
<chmod perm="a+x">
<fileset dir="${app.server.tcat.agent.bin.dir}">
<include name="*.sh" />
</fileset>
</chmod>
<mkdir dir="${app.server.tcat.dir}/admin/temp" />
<mkdir dir="${app.server.tcat.dir}/agent/temp" />
<antcall target="revert-test-properties" />
<ant dir="portal-impl" target="build-selenium-test-case" />
<antcall target="start-selenium" />
<antcall target="run-tcat" inheritAll="false">
<param name="test.class" value="${test.name}" />
</antcall>
<antcall target="stop-selenium" />
</target>
<target name="run-tcat">
<antcall target="run-simple-server" />
<antcall target="evaluate-logs" />
</target>
</project>