Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/shareClassTests/SCHelperCompatTests/build.xml
6004 views
1
<?xml version="1.0"?>
2
3
<!--
4
Copyright (c) 2016, 2021 IBM Corp. and others
5
6
This program and the accompanying materials are made available under
7
the terms of the Eclipse Public License 2.0 which accompanies this
8
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
or the Apache License, Version 2.0 which accompanies this distribution and
10
is available at https://www.apache.org/licenses/LICENSE-2.0.
11
12
This Source Code may also be made available under the following
13
Secondary Licenses when the conditions for such availability set
14
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
General Public License, version 2 with the GNU Classpath
16
Exception [1] and GNU General Public License, version 2 with the
17
OpenJDK Assembly Exception [2].
18
19
[1] https://www.gnu.org/software/classpath/license.html
20
[2] http://openjdk.java.net/legal/assembly-exception.html
21
22
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
23
-->
24
25
<project name="SCHelperCompatTests" default="build" basedir=".">
26
<taskdef resource="net/sf/antcontrib/antlib.xml" />
27
<description>
28
Build SCHelperCompatTests
29
</description>
30
31
<import file="${TEST_ROOT}/functional/cmdLineTests/buildTools.xml"/>
32
33
<!-- set properties for this build -->
34
<property name="DEST" value="${BUILD_ROOT}/functional/cmdLineTests/shareClassTests/SCHelperCompatTests" />
35
<property name="PROJECT_ROOT" location="." />
36
<property name="src" location="."/>
37
<property name="build" location="./bin"/>
38
<property name="SharedClassUtils_srddir" value="../utils/src/" />
39
<property name="BatchFiles_srddir" value="../batchfiles" />
40
41
<import file="../testClasses/build.xml" />
42
43
<target name="init">
44
<mkdir dir="${DEST}" />
45
<mkdir dir="${build}" />
46
</target>
47
48
<target name="AddBatchAndScriptFilesToPackage" >
49
<mkdir dir="${build}/batchfiles" />
50
<copy todir="${build}/batchfiles">
51
<fileset dir="${BatchFiles_srddir}"/>
52
</copy>
53
</target>
54
55
<target name="compile" depends="init,AddTestClassesToPackage,AddBatchAndScriptFilesToPackage" description="Compile the source" >
56
<echo>Ant version is ${ant.version}</echo>
57
<echo>============COMPILER SETTINGS============</echo>
58
<echo>===fork: yes</echo>
59
<echo>===executable: ${compiler.javac}</echo>
60
<echo>===debug: on</echo>
61
<echo>===destdir: ${DEST}</echo>
62
63
<copy todir="${build}">
64
<fileset dir="${src}" includes="*.xml,*.java" excludes="playlist.xml" />
65
</copy>
66
67
<if>
68
<equals arg1="${JDK_VERSION}" arg2="8"/>
69
<then>
70
<javac srcdir="${build}" includes="PartitioningURLClassPathHelperURLHelperStaleEntryCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
71
<src path="${SharedClassUtils_srddir}"/>
72
</javac>
73
<javac srcdir="${build}" includes="PartitioningURLHelperURLClassPathHelperStaleEntryCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
74
<src path="${SharedClassUtils_srddir}"/>
75
</javac>
76
<javac srcdir="${build}" includes="TokenIncompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
77
<src path="${SharedClassUtils_srddir}"/>
78
</javac>
79
<javac srcdir="${build}" includes="URLClassPathHelperURLHelperCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
80
<src path="${SharedClassUtils_srddir}"/>
81
</javac>
82
<javac srcdir="${build}" includes="URLClassPathHelperURLHelperStaleEntryCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
83
<src path="${SharedClassUtils_srddir}"/>
84
</javac>
85
<javac srcdir="${build}" includes="URLHelperURLClassPathHelperCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
86
<src path="${SharedClassUtils_srddir}"/>
87
</javac>
88
<javac srcdir="${build}" includes="URLHelperURLClassPathHelperStaleEntryCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
89
<src path="${SharedClassUtils_srddir}"/>
90
</javac>
91
</then>
92
<else>
93
<property name="addExports" value="--add-modules openj9.sharedclasses --add-exports java.base/com.ibm.oti.util=ALL-UNNAMED" />
94
<javac srcdir="${build}" includes="PartitioningURLClassPathHelperURLHelperStaleEntryCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
95
<src path="${SharedClassUtils_srddir}"/>
96
<compilerarg line='${addExports}' />
97
</javac>
98
<javac srcdir="${build}" includes="PartitioningURLHelperURLClassPathHelperStaleEntryCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
99
<src path="${SharedClassUtils_srddir}"/>
100
<compilerarg line='${addExports}' />
101
</javac>
102
<javac srcdir="${build}" includes="TokenIncompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
103
<src path="${SharedClassUtils_srddir}"/>
104
<compilerarg line='${addExports}' />
105
</javac>
106
<javac srcdir="${build}" includes="URLClassPathHelperURLHelperCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
107
<src path="${SharedClassUtils_srddir}"/>
108
<compilerarg line='${addExports}' />
109
</javac>
110
<javac srcdir="${build}" includes="URLClassPathHelperURLHelperStaleEntryCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
111
<src path="${SharedClassUtils_srddir}"/>
112
<compilerarg line='${addExports}' />
113
</javac>
114
<javac srcdir="${build}" includes="URLHelperURLClassPathHelperCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
115
<src path="${SharedClassUtils_srddir}"/>
116
<compilerarg line='${addExports}' />
117
</javac>
118
<javac srcdir="${build}" includes="URLHelperURLClassPathHelperStaleEntryCompatibilityTest.java" destdir="${build}" fork="true" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" encoding="ISO-8859-1">
119
<src path="${SharedClassUtils_srddir}"/>
120
<compilerarg line='${addExports}' />
121
</javac>
122
</else>
123
</if>
124
125
<mkdir dir="${build}/props_unix"/>
126
<mkdir dir="${build}/props_win"/>
127
<copy todir="${build}/props_unix">
128
<fileset dir="./props_unix"/>
129
</copy>
130
<copy todir="${build}/props_win">
131
<fileset dir="./props_win"/>
132
</copy>
133
</target>
134
135
<target name="dist" depends="compile" description="generate the distribution">
136
<jar jarfile="${DEST}/HelperCompatibilityTests.jar" filesonly="true">
137
<fileset dir="${build}" />
138
</jar>
139
<copy todir="${DEST}">
140
<fileset dir="${src}" includes="props_unix/**,props_win/**,*.xml" />
141
<fileset dir="${src}" includes="*.mk" />
142
</copy>
143
</target>
144
145
<target name="clean" depends="dist" description="clean up">
146
<!-- Delete the ${build} directory trees -->
147
<delete dir="${build}" />
148
</target>
149
150
<target name="build" depends="buildCmdLineTestTools">
151
<if>
152
<or>
153
<equals arg1="${JDK_IMPL}" arg2="ibm" />
154
<equals arg1="${JDK_IMPL}" arg2="openj9" />
155
</or>
156
<then>
157
<antcall target="clean" inheritall="true" />
158
</then>
159
</if>
160
</target>
161
</project>
162
163