This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-test-resin.xml
74 lines (58 loc) · 2.15 KB
/
build-test-resin.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
<?xml version="1.0"?>
<project name="portal-test-resin" basedir="." default="test" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="run-resin">
<antcall target="clean-up-logs" />
<antcall target="run-simple-server">
<param name="simple.server.dir" value="${app.server.resin.dir}" />
<param name="simple.server.bin.dir" value="${app.server.resin.bin.dir}" />
<param name="simple.server.deploy.dir" value="${app.server.resin.deploy.dir}" />
<param name="simple.server.lib.global.dir" value="${app.server.resin.lib.global.dir}" />
<param name="simple.server.portal.dir" value="${app.server.resin.portal.dir}" />
<param name="simple.server.start.executable" value="start${file.suffix.bat}" />
<param name="simple.server.start.executable.arg.line" value="" />
<param name="simple.server.stop.executable" value="stop${file.suffix.bat}" />
<param name="simple.server.stop.executable.arg.line" value="" />
</antcall>
<antcall target="copy-log-file" />
<antcall target="evaluate-logs" />
</target>
<target name="run-selenium-resin">
<if>
<not>
<isset property="build.app.server" />
</not>
<then>
<ant antfile="build-dist.xml" target="build-dist-resin" />
</then>
</if>
<copy
file="${app.server.resin.bin.dir}/run.sh"
tofile="${app.server.resin.bin.dir}/start.sh"
/>
<replace file="${app.server.resin.bin.dir}/start.sh">
<replacetoken>$@</replacetoken>
<replacevalue>start</replacevalue>
</replace>
<copy
file="${app.server.resin.bin.dir}/run.sh"
tofile="${app.server.resin.bin.dir}/stop.sh"
/>
<replace file="${app.server.resin.bin.dir}/stop.sh">
<replacetoken>$@</replacetoken>
<replacevalue>stop</replacevalue>
</replace>
<chmod perm="a+x">
<fileset dir="${app.server.resin.bin.dir}">
<include name="*.sh" />
</fileset>
</chmod>
<antcall target="revert-test-properties" />
<antcall target="prepare-virtual-host-name-properties" />
<antcall target="start-selenium" />
<antcall target="run-resin">
<param name="test.class" value="${test.name}" />
</antcall>
<antcall target="stop-selenium" />
</target>
</project>