/
websocket.xml
241 lines (210 loc) · 10.2 KB
/
websocket.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!--
Copyright (c) 2018, 2022 Oracle and/or its affiliates and others.
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" basedir="." default="build">
<!-- IMPORTS -->
<import file="../../bin/xml/ts.common.props.xml"/>
<property name="deliverable.version" value="2.1"/>
<property name="deliverable.tck.version" value="2.1.0"/>
<property name="platform.folder" value="com/sun/ts/tests/websocket/platform/**"/>
<!-- For TCK, exclude platform dependencies, i.e. if run on not full EE platform
For JAXRS CTS, no need to exclude anything, to run e.g. on Glassfish -->
<condition property="exclude.classes" value="">
<contains string="${test.areas}" substring="websocket" casesensitive="false"/>
</condition>
<condition property="exclude.classes" value="${platform.folder}/*.class">
<not>
<contains string="${test.areas}" substring="websocket" casesensitive="false"/>
</not>
</condition>
<condition property="exclude.src" value="">
<contains string="${test.areas}" substring="websocket" casesensitive="false"/>
</condition>
<condition property="exclude.src" value="${platform.folder}/*">
<not>
<contains string="${test.areas}" substring="websocket" casesensitive="false"/>
</not>
</condition>
<condition property="exclude.sunwebxml" value="">
<contains string="${test.areas}" substring="websocket" casesensitive="false"/>
</condition>
<condition property="exclude.sunwebxml" value="${platform.folder}/*.sun-web.xml">
<not>
<contains string="${test.areas}" substring="websocket" casesensitive="false"/>
</not>
</condition>
<condition property="exclude.wars" value="">
<contains string="${test.areas}" substring="websocket" casesensitive="false"/>
</condition>
<condition property="exclude.wars" value="${platform.folder}/*.war">
<not>
<contains string="${test.areas}" substring="websocket" casesensitive="false"/>
</not>
</condition>
<target name="init">
<mkdir dir="${deliverable.bundle.dir}/bin"/>
<mkdir dir="${deliverable.bundle.dir}/classes"/>
<mkdir dir="${deliverable.bundle.dir}/dist"/>
<mkdir dir="${deliverable.bundle.dir}/lib/dtds"/>
<mkdir dir="${deliverable.bundle.dir}/src"/>
<mkdir dir="${deliverable.bundle.dir}/src/com/sun/ts/lib/porting"/>
<mkdir dir="${deliverable.bundle.dir}/src/com/sun/ts/lib/implementation/sun/common"/>
<mkdir dir="${deliverable.bundle.dir}/docs"/>
</target>
<target name="copyinstall">
<copy todir="${deliverable.bundle.dir}/bin" includeEmptyDirs="no">
<fileset dir="${ts.home}/install/${deliverable.name.lower}/bin"
includes="**/*"
excludes="**/workspace.xml, **/*.log, **/out, **/certificates/README"/>
</copy>
<copy todir="${deliverable.bundle.dir}/lib" includeEmptyDirs="no">
<fileset dir="${ts.home}/lib"
includes="commons-httpclient-3.1.jar, commons-logging-1.1.3.jar, commons-codec-1.9.jar, tsharness.jar, websockettck.jar, javatest.jar" />
</copy>
<copy todir="${deliverable.bundle.dir}/src">
<fileset dir="${ts.home}/install/${deliverable.name.lower}/other"
includes="**/*"/>
</copy>
<copy todir="${deliverable.bundle.dir}/docs" includeEmptyDirs="no">
<fileset dir="${ts.home}/install/${deliverable.name.lower}/docs"/>
</copy>
<!-- NOTICE will be EPL or EFTL specific: TBD-->
<!--copy todir="${deliverable.bundle.dir}" includeEmptyDirs="no">
<fileset dir="${ts.home}" includes="NOTICE" />
</copy-->
<copy tofile="${deliverable.bundle.dir}/LICENSE.md" file="${ts.home}/${licensefile}">
</copy>
</target>
<target name="copybin">
<copy todir="${deliverable.bundle.dir}/bin/xml/impl/glassfish/templates">
<fileset dir="${common.bin.dir}/xml/impl/glassfish/templates"
includes="**/password.template"/>
</copy>
<copy todir="${deliverable.bundle.dir}/bin/xml/impl/glassfish">
<fileset dir="${common.bin.dir}/xml/impl/glassfish"
includes="**/s1as.xml,**/common.xml"/>
</copy>
</target>
<target name="build" depends="init, copyinstall, copybin">
<!-- the classes directory -->
<copy todir="${deliverable.bundle.dir}/classes" includeEmptyDirs="no">
<fileset dir="${ts.home}/classes"
includes="com/sun/ts/tests/websocket/**/*.class,
com/sun/ts/tests/common/webclient/**/*.class,
com/sun/ts/tests/common/vehicle/*.class,
com/sun/ts/lib/deliverable/tck/*.class,
com/sun/ts/lib/porting/TSURL.class,
com/sun/ts/lib/porting/TSURLInterface.class,
com/sun/ts/lib/implementation/sun/common/SunRIURL.class,
com/sun/ts/tests/signaturetest/*.class,
com/sun/ts/tests/signaturetest/websocket/WebSocketSigTest.class"
excludes="${exclude.classes}"/>
</copy>
<!-- the lib/dtds directory -->
<copy todir="${deliverable.bundle.dir}/lib/dtds" includeEmptyDirs="no">
<fileset dir="${ts.home}/lib/dtds" includes="web-app*"/>
</copy>
<!-- include schemas needed for the technology -->
<copy todir="${deliverable.bundle.dir}/lib/schemas" includeEmptyDirs="no">
<fileset dir="${ts.home}/lib/schemas"
includes="web-app*,
XMLSchema.xsd, xml.xsd"/>
</copy>
<!-- copy the commons-httpclient and dependent JARs -->
<copy todir="${deliverable.bundle.dir}/lib" includeEmptyDirs="no">
<fileset dir="${ts.home}/lib" includes="commons-*.jar" />
</copy>
<copy todir="${deliverable.bundle.dir}/dist" includeEmptyDirs="no">
<fileset dir="${ts.home}/dist" includes="com/sun/ts/tests/websocket/**/*sun-web.xml"
excludes="${exclude.sunwebxml}" />
</copy>
<!-- the war files in the dist directory -->
<copy todir="${deliverable.bundle.dir}/dist" includeEmptyDirs="no">
<fileset dir="${ts.home}/dist" includes="com/sun/ts/tests/websocket/**/*.war"
excludes="${exclude.wars}"/>
</copy>
<!-- the specific deliverable source directories -->
<copy todir="${deliverable.bundle.dir}/src" includeEmptyDirs="no">
<fileset dir="${ts.home}/src"
includes="com/sun/ts/tests/websocket/**/*,
com/sun/ts/tests/signaturetest/SigTestData.java,
com/sun/ts/tests/signaturetest/SigTest.java,
com/sun/ts/tests/signaturetest/SigTestResult.java,
com/sun/ts/tests/signaturetest/SigTestUtil.java,
com/sun/ts/tests/signaturetest/build.xml,
com/sun/ts/tests/signaturetest/signature-repository/*websocket*,
com/sun/ts/tests/signaturetest/websocket/WebSocketSigTest.java"
excludes="${exclude.src}"/>
</copy>
<copy todir="${deliverable.bundle.dir}/src/com/sun/ts/tests/signaturetest/signature-repository/"
includeEmptyDirs="no">
<fileset dir="${ts.home}/src/com/sun/ts/tests/signaturetest/signature-repository/"
includes="jakarta.websocket.sig_2.1*" />
</copy>
<!-- the com/sun/ts/lib file -->
<copy file="${ts.home}/src/com/sun/ts/lib/build.xml"
todir="${deliverable.bundle.dir}/src/com/sun/ts/lib"/>
<!-- the com/sun/ts/lib/porting directory -->
<copy todir="${deliverable.bundle.dir}/src/com/sun/ts/lib/porting"
includeEmptyDirs="no">
<fileset dir="${ts.home}/src/com/sun/ts/lib/porting"
includes="TSDeploymentInterface.java,
TSDeploymentException.java,
TSURLInterface.java, TSURL.java"/>
</copy>
<!-- the com/sun/ts/lib/implementation/sun/common file -->
<copy file="${ts.home}/src/com/sun/ts/lib/implementation/sun/common/SunRIURL.java"
todir="${deliverable.bundle.dir}/src/com/sun/ts/lib/implementation/sun/common"/>
<!-- the com/sun/ts/lib/implementation/sun/javaee directory -->
<copy todir="${deliverable.bundle.dir}/src/com/sun/ts/lib/implementation/sun/javaee"
includeEmptyDirs="no">
<fileset dir="${ts.home}/src/com/sun/ts/lib/implementation/sun/javaee"
includes="ManualDeployment.java,SunRIDeployment.java"/>
</copy>
<delete quiet="true">
<fileset dir="${deliverable.bundle.dir}/lib"
includes="*jaxb*"/>
</delete>
<antcall target="mvn"/>
<!--
<antcall target="create.doc.bundle"/>
-->
</target>
<target name="mvn">
<exec dir="${ts.home}/user_guides/${deliverable.dir}" executable="mvn">
<arg line="-B -Dmaven.repo.local=${ts.home}/.m2/repository"/>
</exec>
<copy toDir="${deliverable.bundle.dir}/docs/">
<fileset dir="${ts.home}/user_guides/${deliverable.dir}/target"
includes="staging/*.html,staging/css/*,staging/img/*,
generated-docs/*.pdf"/>
</copy>
<move todir="${deliverable.bundle.dir}/docs/pdf-usersguide">
<fileset dir="${deliverable.bundle.dir}/docs/generated-docs"/>
</move>
<move todir="${deliverable.bundle.dir}/docs/html-usersguide">
<fileset dir="${deliverable.bundle.dir}/docs/staging"/>
</move>
</target>
<target name="create.doc.bundle">
<delete file="${deliverable.bundle.dir}/../${deliverable.name}tck-doc*.zip"/>
<zip zipfile="${deliverable.bundle.dir}/../${deliverable.name}tck-doc-${deliverable.version}_${time.stamp.bundle.string}.zip">
<zipfileset dir="${ts.home}/install/${deliverable.dir}/docs"
includes="**/*.html, **/*.gif, **/*.css"
excludes="*ReleaseNotes*.html"/>
<zipfileset dir="${deliverable.bundle.dir}/docs/assertions"
prefix="assertions"
includes="*"/>
</zip>
</target>
</project>