/
build.xml
129 lines (107 loc) · 5.25 KB
/
build.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!--
Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<project name=" WebSocket 2.1 TCK" default="usage">
<!-- IMPORTS -->
<import file="xml/ts.top.import.xml" optional="true"/>
<import file="../../../bin/xml/ts.top.import.xml" optional="true"/>
<property name="all.test.dir" value="
com/sun/ts/tests/websocket,
com/sun/ts/tests/signaturetest/websocket"/>
<target name="build.all.tests" >
<echo message="Test Dirs:${all.test.dir}"/>
<dosubdirs srcdir="${ts.home}/src" includes="${all.test.dir}" todo="build"
excludes=""
/>
</target>
<target name="translatepath">
<translatepath propname="web.home"/>
</target>
<target name="deploy.all" description="Deploy all archives.">
<echo message="javaee.level: ${javaee.level}" />
<property name="pkg.dir" value="com/sun/ts/tests/websocket"/>
<ant antfile="build.xml" dir="${ts.home}/src/com/sun/ts/tests/websocket" target="deploy"/>
</target>
<target name="tslib.clean" depends="translatepath">
<delete failonerror="false">
<fileset dir="${class.dir}">
<include name="${lib.pkg.dir}/deliverable/tck/**"/>
<include name="${provider.dir}/"/>
</fileset>
</delete>
<delete failonerror="false" file="${lib.dir}/${tslib.name}.jar"/>
</target>
<target name="tslib.compile" depends="tslib.clean, bind.dtds">
<ts.javac
includes="${lib.pkg.dir}/deliverable/tck/**,
${lib.pkg.dir}/porting/**/*.java,
${lib.pkg.dir}/implementation/sun/common/**,
${lib.pkg.dir}/implementation/sun/javaee/SunRIHttpsURLConnection.java,
${provider.dir}/**,
com/sun/ts/tests/common/vehicle/VehicleClient.java,
com/sun/ts/tests/common/vehicle/VehicleRunnerFactory.java,
com/sun/ts/tests/common/vehicle/EmptyVehicleRunner.java,
com/sun/ts/tests/common/vehicle/VehicleRunnable.java"
excludes="${lib.pkg.dir}/implementation/sun/javaee/SunRIDeploy**,
${lib.pkg.dir}/porting/TSJMS*.java,
${lib.pkg.dir}/porting/TSDeployment*.java"
>
<classpath>
<pathelement path="${ts.lib.classpath}" />
</classpath>
</ts.javac>
</target>
<target name="tslib" depends="tslib.compile">
<tstamp/>
<delete failonerror="true" file="${lib.dir}/${tslib.name}.jar"/>
<ts.lib.jar>
<include name="${lib.pkg.dir}/deliverable/tck/**"/>
<include name="${lib.pkg.dir}/implementation/sun/common/**"/>
<include name="com/sun/ts/tests/common/vehicle/VehicleClient.class"/>
<include name="com/sun/ts/tests/common/vehicle/VehicleRunnerFactory.class"/>
<include name="com/sun/ts/tests/common/vehicle/EmptyVehicleRunner.class"/>
<include name="com/sun/ts/tests/common/vehicle/VehicleRunnable.class"/>
<include name="com/sun/ts/tests/common/webclient/**"/>
</ts.lib.jar>
</target>
<!-- creates xml report-->
<presetdef name="javatest.xmlreport">
<!--
The javatest.gui task is a presetdef that calls the javatest presetdef
passing the additional XML content needed to invoke the javatest GUI.
To see the preset values, refer to the included XML below that shows
the content of the javatest.gui presetdef.
-->
<javatest>
<arg line=" -EsysProps" />
<arg line=" -batch" />
<arg line=" -testsuite ${ts.home}/src" />
<arg line=" -workDir ${work.dir}" />
<arg line=" -envFiles ${bin.dir}/ts.jte" />
<arg line=" -env ${ts.env}" />
<arg line=" -excludeList ${bin.dir}/ts.jtx" />
<arg line=" -writereport -type xml ${report.dir}/xml" />
</javatest>
</presetdef>
<target name="xmlreport"
depends="set.report.prop, init, backup.report.dir, set.report.arg, translatepath"
description="Generates the test report for all tests in the current work directory">
<javatest.xmlreport/>
</target>
<!-- these targets are needed for configuring the VI and RI implementations for WebSocoket tests -->
<target name="config.vi">
<ant antfile="${bin.dir}/xml/impl/${impl.vi}/config.vi.xml" target="config.vi" />
</target>
<target name="clean.vi">
<ant antfile="${bin.dir}/xml/impl/${impl.vi}/config.vi.xml" target="clean.vi" />
</target>
</project>