-
Notifications
You must be signed in to change notification settings - Fork 13
/
release.xml
112 lines (100 loc) · 4.35 KB
/
release.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, 2023 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="Jakarta Activation TCK release" default="core" basedir=".">
<import file="./build.xml"/>
<property name="zip.fullname" value="activation-tck-${version.tck}"/>
<property name="zip.file" value="${zip.fullname}.zip"/>
<target name="javadoc">
<mkdir dir="${basedir}/docs/javadocs"/>
<javadoc
destdir="${basedir}/docs/javadocs"
source="11"
notree="false"
use="true"
nonavbar="false"
noindex="false"
splitindex="true"
author="false"
version="true"
failonerror="true"
windowtitle="Jakarta Activation ${version} TCK">
<sourcepath>
<pathelement location="${basedir}/tests/api"/>
</sourcepath>
<classpath>
<pathelement path="${class.path}"/>
</classpath>
<fileset dir="${basedir}/tests/api"/>
</javadoc>
</target>
<target name="mvn">
<exec dir="${basedir}/docs/ug" executable="mvn">
<arg line="-B -V -Dmaven.repo.local=${ts.home}/.m2/repository"/>
</exec>
</target>
<target name="copyEFTLicense" if="useEFTLicensefile">
<copy tofile="${ts.home}/LICENSE.md" file="${ts.home}/LICENSE_EFTL.md" overwrite="true">
</copy>
</target>
<target name="core" depends="clean, build, mvn, javadoc, _create.version.file">
<delete file="${zip.file}" quiet="true"/>
<antcall target="copyEFTLicense"/>
<zip destfile="${zip.file}">
<zipfileset dir="${ts.home}/docs/"
includes="README.md"
prefix="activation-tck"/>
<zipfileset dir="${ts.home}/docs"
includes="index.html,ReleaseNotes-*.html"
prefix="activation-tck/docs"/>
<zipfileset dir="${ts.home}/docs/ug/target/staging/"
prefix="activation-tck/docs/html-usersguide/"/>
<zipfileset dir="${ts.home}/docs/ug/target/generated-docs/"
includes="*.pdf"
prefix="activation-tck/docs/pdf-usersguide/"/>
<zipfileset dir="${ts.home}"
includes="build.xml,
javatest.jar,
sigtest.jar,
version,
docs/javadocs/**,
tests/api/**,
tests/pluggability/**,
tests/testsuite.html,
tests/testsuite.jtt,
tests/SignatureTest.html,
tests/*.sig,
providers/**,
lib/*.jte,
lib/*.jti,
lib/*.jtx,
tools/**,
classes*/**,
LICENSE.md,
harness/**"
prefix="activation-tck"/>
</zip>
</target>
<target name="_create.version.file">
<tstamp>
<format property="time.stamp" pattern="EEE, d MMM yyyy HH:mm:ss" locale="en"/>
</tstamp>
<touch file="${ts.home}/version"/>
<propertyfile file="${ts.home}/version"
comment="TCK Bundle Version Information">
<entry key="build.name" value="${zip.fullname}"/>
<entry key="build.date.time" value="${time.stamp}"/>
<entry key="build.comment" value="${ts.build.comment}"/>
</propertyfile>
</target>
</project>