forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 28
/
build-test-tcserver.xml
90 lines (62 loc) · 2.07 KB
/
build-test-tcserver.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0"?>
<project basedir="." default="test" name="portal-test-tcserver" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="run-selenium-tcserver">
<lstopwatch action="start" name="run.selenium.tcserver" />
<app-server-properties-update>
app.server.type=tcserver
</app-server-properties-update>
<if>
<not>
<isset property="build.app.server" />
</not>
<then>
<ant antfile="build-dist.xml" target="build-dist-tcserver" />
</then>
</if>
<echo file="${app.server.tcserver.bin.dir}/shutdown.bat">
@echo off
set JAVA_OPTS_TEMP=%JAVA_OPTS%
set JAVA_OPTS=
call ${app.server.tcserver.developer.dir}/tcserver stop liferay
call ${app.server.tcserver.developer.dir}/tcserver uninstall liferay
set JAVA_OPTS=%JAVA_OPTS_TEMP%
set JAVA_OPTS_TEMP=
</echo>
<echo file="${app.server.tcserver.bin.dir}/shutdown.sh">
${app.server.tcserver.developer.dir}/./tcserver.sh stop liferay
</echo>
<echo file="${app.server.tcserver.bin.dir}/startup.bat">
@echo off
set JAVA_OPTS_TEMP=%JAVA_OPTS%
set JAVA_OPTS=
call ${app.server.tcserver.developer.dir}/tcserver install liferay
call ${app.server.tcserver.developer.dir}/tcserver run liferay
set JAVA_OPTS=%JAVA_OPTS_TEMP%
set JAVA_OPTS_TEMP=
</echo>
<echo file="${app.server.tcserver.bin.dir}/startup.sh">
${app.server.tcserver.developer.dir}/./tcserver.sh run liferay
</echo>
<chmod
perm="a+x"
>
<fileset
dir="${app.server.tcserver.dir}"
>
<include name="**/*.sh" />
</fileset>
</chmod>
<antcall target="record-test-generated-properties" />
<antcall target="prepare-virtual-host-name-properties" />
<antcall inheritAll="false" target="run-tcserver">
<param name="test.class" value="${test.class}" />
</antcall>
<lstopwatch action="total" name="run.selenium.tcserver" />
</target>
<target name="run-tcserver">
<lstopwatch action="start" name="run.tcserver" />
<antcall target="run-simple-server" />
<lstopwatch action="total" name="run.tcserver" />
</target>
</project>