forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test-tcat.xml
69 lines (53 loc) · 1.73 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
<?xml version="1.0"?>
<project basedir="." default="test" name="portal-test-tcat" 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 append="true" file="test.${user.name}.properties">
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
liferay.home=${liferay.home}
plugins.includes=marketplace-portlet</echo>
<ant antfile="build-dist.xml" 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="record-test-generated-properties" />
<antcall inheritAll="false" target="run-tcat">
<param name="test.class" value="${test.class}" />
</antcall>
</target>
<target name="run-tcat">
<antcall target="run-simple-server" />
</target>
</project>