/
jpa.xml
202 lines (180 loc) · 9.68 KB
/
jpa.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
<!--
Copyright (c) 2018, 2021 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="PERSISTENCE" basedir="." default="build">
<!-- IMPORTS -->
<import file="../../bin/xml/ts.common.props.xml"/>
<property name="deliverable.version" value="3.0"/>
<property name="deliverable.tck.version" value="3.0.1"/>
<target name="init">
<mkdir dir="${deliverable.bundle.dir}/bin"/>
<mkdir dir="${deliverable.bundle.dir}/classes"/>
<mkdir dir="${deliverable.bundle.dir}/docs"/>
<mkdir dir="${deliverable.bundle.dir}/docs/assertions"/>
<mkdir dir="${deliverable.bundle.dir}/lib"/>
<mkdir dir="${deliverable.bundle.dir}/lib/schemas"/>
<mkdir dir="${deliverable.bundle.dir}/src"/>
<mkdir dir="${deliverable.bundle.dir}/dist"/>
<mkdir dir="${deliverable.bundle.dir}/tmp"/>
<mkdir dir="${deliverable.bundle.dir}/sql"/>
<mkdir dir="${deliverable.bundle.dir}/bin/xml/impl/glassfish"/>
</target>
<target name="copyinstall">
<!-- revert the ts.jte file -->
<echo message="reverting ts.jte" />
<antcall target="jte.cleanup" />
<copy todir="${deliverable.bundle.dir}/bin" includeEmptyDirs="no">
<fileset dir="${ts.home}/install/${deliverable.name.lower}/bin"
includes="**/*"
excludes="**/workspace.xml, **/*.log, **/out"/>
</copy>
<copy todir="${deliverable.bundle.dir}/lib">
<fileset dir="${ts.home}/lib"
includes="${deliverable.name.lower}tck.jar, ant_sun.jar, sigtest.jar, javatest.jar,
tsharness.jar, dbprocedures.jar"
excludes="jaxb-*.jar,cts.jar,tspackager.jar,
tsprovider.jar,riinterceptors.jar,apiCheck.jar, sigtestdev.jar,
commons-httpclient.jar, commons-logging.jar"/>
</copy>
<copy todir="${deliverable.bundle.dir}/sql" includeEmptyDirs="no">
<fileset dir="${ts.home}/sql"
includes="**/*persistence.sql, **/*persistence.sprocs.sql, **/*jpa.sql"/>
</copy>
<copy overwrite="true" todir="${deliverable.bundle.dir}/bin" includeEmptyDirs="no">
<fileset dir="${ts.home}/install/${deliverable.name.lower}/bin"
includes="build*"/>
</copy>
<copy todir="${deliverable.bundle.dir}/lib/schemas" includeEmptyDirs="no">
<fileset dir="${ts.home}/lib/schemas"
includes="persistence_1_0.xsd, orm_1_0.xsd, persistence_2_0.xsd, orm_2_0.xsd"/>
</copy>
<copy todir="${deliverable.bundle.dir}/src">
<fileset dir="${ts.home}/install/${deliverable.name.lower}/other"
includes="testsuite.jtt, vehicle.properties"/>
</copy>
<copy todir="${deliverable.bundle.dir}/bin/xml/impl/glassfish" overwrite="true">
<fileset dir="${common.bin.dir}/xml/impl/glassfish" includes="common.xml,s1as.xml"/>
</copy>
<!-- copy the documentation -->
<copy todir="${deliverable.bundle.dir}/docs" includeEmptyDirs="no">
<fileset dir="${ts.home}/install/jpa/docs" excludes="**svn**, **/*2.1*" />
</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="build" depends="init">
<antcall target="copyinstall"/>
<!-- the classes directory -->
<copy todir="${deliverable.bundle.dir}/classes" includeEmptyDirs="no">
<fileset dir="${ts.home}/classes"
includes="com/sun/ts/tests/jpa/**/*.class,
com/sun/ts/tests/common/vehicle/*.class,
com/sun/ts/tests/common/vehicle/ejb3share/*.class,
com/sun/ts/lib/implementation/sun/common/SunRIURL.class,
com/sun/ts/lib/deliverable/*.class,
com/sun/ts/lib/deliverable/jpa/*.class,
com/sun/ts/lib/tests/jpa/storedprocedures/*.class,
com/sun/ts/tests/signaturetest/*.class,
com/sun/ts/tests/signaturetest/jpa/*.class"
excludes="**/ee/**/*,com/sun/ts/tests/signaturetest/*Record*,
com/sun/ts/tests/signaturetest/*record*"/>
</copy>
<!-- the dist directory - NOTE: ADJUST TO ONLY INCLUDE .pars from dist-->
<copy todir="${deliverable.bundle.dir}/dist" includeEmptyDirs="no">
<fileset dir="${ts.home}/dist"
includes="**/jpa/**/*.jar"/>
</copy>
<!-- the sig test ear files in the dist directory -->
<copy todir="${deliverable.bundle.dir}/dist" includeEmptyDirs="no">
<fileset dir="${ts.home}/dist"
includes="com/sun/ts/tests/signaturetest/jpa/**"/>
</copy>
<!-- the specific deliverable source directories -->
<copy todir="${deliverable.bundle.dir}/src" includeEmptyDirs="no">
<fileset dir="${ts.home}/src"
includes="com/sun/ts/tests/build.xml,
com/sun/ts/tests/jpa/**/*,
com/sun/ts/lib/implementation/sun/common/SunRIURL.java,
com/sun/ts/lib/tests/jpa/storedprocedures/*,
com/sun/ts/tests/common/vehicle/*.java,
com/sun/ts/tests/common/vehicle/build.xml,
com/sun/ts/tests/common/vehicle/standalone/*,
com/sun/ts/tests/common/vehicle/ejb3share/*,
com/sun/ts/tests/signaturetest/jpa/**/*,
com/sun/ts/tests/signaturetest/*,
com/sun/ts/tests/signaturetest/signature-repository/jakarta.persistence.*"
excludes="**/*log,com/sun/ts/tests/common/web,
com/sun/ts/tests/signaturetest/*Record*,
com/sun/ts/tests/signaturetest/*record*,
**/ee/**/*"/>
</copy>
<!-- copy the ReleaseNotes -->
<copy todir="${deliverable.bundle.dir}/..">
<fileset dir="${ts.home}/install/${deliverable.dir}/docs"
includes="*ReleaseNotes*.html"/>
</copy>
<antcall target="mvn"/>
<!--
<antcall target="create.doc.bundle"/>
-->
</target>
<target name="mvn">
<exec dir="${ts.home}/user_guides/${deliverable.dir}" executable="mvn"/>
<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"
excludes="*ReleaseNotes*.html, assertions/**" />
<zipfileset dir="${ts.home}/internal/docs/jpa"
prefix="assertions"
includes="Persistence22JavadocAssertions.html,
PersistenceSpecAssertions.html"/>
</zip>
</target>
<target name="jte.cleanup">
<if>
<resourceexists>
<file file="${ts.home}/install/${deliverable.name.lower}/bin/ts.jte.orig"/>
</resourceexists>
<then>
<copy overwrite="true" file="${ts.home}/install/${deliverable.name.lower}/bin/ts.jte.orig" tofile="${ts.home}/install/${deliverable.name.lower}/bin/ts.jte"/>
<delete file="${ts.home}/install/${deliverable.name.lower}/bin/ts.jte.orig"/>
</then>
<elseif>
<resourceexists>
<file file="${ts.home}/install/${deliverable.name.lower}/bin/ts.jte.bak"/>
</resourceexists>
<then>
<copy overwrite="true" file="${ts.home}/install/${deliverable.name.lower}/bin/ts.jte.bak" tofile="${ts.home}/install/${deliverable.name.lower}/bin/ts.jte"/>
<delete file="${ts.home}/install/${deliverable.name.lower}/bin/ts.jte.bak"/>
</then>
</elseif>
</if>
</target>
</project>