@@ -59,13 +59,51 @@ limitations under the License.
59
59
<condition property =" isJavas11" value =" true" >
60
60
<equals arg1=" ${ java.specification.version } " arg2=" 11" />
61
61
</condition >
62
-
63
- <condition property =" isBelowJava12" value =" true" >
64
- <or >
65
- <isset property =" isJavas8" />
66
- <isset property =" isJavas11" />
67
- </or >
68
- </condition >
62
+
63
+ <condition property =" isJavas17" value =" true" >
64
+ <equals arg1=" ${ java.specification.version } " arg2=" 17" />
65
+ </condition >
66
+
67
+ <condition property =" isJavas21" value =" true" >
68
+ <equals arg1=" ${ java.specification.version } " arg2=" 21" />
69
+ </condition >
70
+
71
+ <condition property =" isJavas23" value =" true" >
72
+ <equals arg1=" ${ java.specification.version } " arg2=" 23" />
73
+ </condition >
74
+
75
+ <condition property =" isJavas24" value =" true" >
76
+ <equals arg1=" ${ java.specification.version } " arg2=" 24" />
77
+ </condition >
78
+
79
+ <condition property =" isBelowJava25" value =" true" >
80
+ <or >
81
+ <isset property =" isJavas8" />
82
+ <isset property =" isJavas11" />
83
+ <isset property =" isJavas17" />
84
+ <isset property =" isJavas21" />
85
+ <isset property =" isJavas23" />
86
+ <isset property =" isJavas24" />
87
+ </or >
88
+ </condition >
89
+
90
+ <condition property =" isJavas11or25AndAbove" value =" true" >
91
+ <or >
92
+ <isset property =" isJavas11" />
93
+ <not >
94
+ <isset property =" isBelowJava25" />
95
+ </not >
96
+ </or >
97
+ </condition >
98
+
99
+ <condition property =" isJavas17to24" value =" true" >
100
+ <or >
101
+ <isset property =" isJavas17" />
102
+ <isset property =" isJavas21" />
103
+ <isset property =" isJavas23" />
104
+ <isset property =" isJavas24" />
105
+ </or >
106
+ </condition >
69
107
70
108
<!-- Projects which need to be built before this one. -->
71
109
<!-- dir must be set on the ant task otherwise the basedir property is not set to a new value in the subant task. -->
@@ -108,7 +146,7 @@ limitations under the License.
108
146
</jar >
109
147
</target >
110
148
111
- <target name =" build-java" depends =" build-java-8, build-java-11, build-java-above-11 " />
149
+ <target name =" build-java" depends =" build-java-8, build-java-11-25plus , build-java-17-24 " />
112
150
113
151
<target name =" build-java-8" if =" ${ isJavas8 } " depends =" check-prereqs, create-bin-dir" >
114
152
<!--
@@ -137,7 +175,7 @@ limitations under the License.
137
175
</javac >
138
176
</target >
139
177
140
- <target name =" build-java-11" if =" ${ isJavas11 } " depends =" check-prereqs, create-bin-dir" >
178
+ <target name =" build-java-11-25plus " if =" ${ isJavas11or25AndAbove } " depends =" check-prereqs, create-bin-dir" >
141
179
<!--
142
180
The Ant javac task only checks time dependencies between .java files and their .class files,
143
181
so fails to recompile in situations such as the signatures of a dependent method changing.
@@ -167,7 +205,7 @@ limitations under the License.
167
205
</javac >
168
206
</target >
169
207
170
- <target name =" build-java-above-11 " unless =" ${ isBelowJava12 } " depends =" check-prereqs, create-bin-dir" >
208
+ <target name =" build-java-17-24 " if =" ${ isJavas17to24 } " depends =" check-prereqs, create-bin-dir" >
171
209
<property name =" addExports" value =" --add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED" />
172
210
<javac srcdir =" ${ openjdk_test_debugging_src_dir } "
173
211
destdir=" ${ openjdk_test_debugging_bin_dir } "
0 commit comments