Skip to content

Commit 69cfb9d

Browse files
Update jdk-25+ openjdk.test.debugging to use asm.jar (adoptium#497)
Signed-off-by: Andrew Leonard <[email protected]>
1 parent 2009cbc commit 69cfb9d

File tree

1 file changed

+48
-10
lines changed

1 file changed

+48
-10
lines changed

openjdk.test.debugging/build.xml

+48-10
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,51 @@ limitations under the License.
5959
<condition property="isJavas11" value="true">
6060
<equals arg1="${java.specification.version}" arg2="11"/>
6161
</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>
69107

70108
<!-- Projects which need to be built before this one. -->
71109
<!-- 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.
108146
</jar>
109147
</target>
110148

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" />
112150

113151
<target name="build-java-8" if="${isJavas8}" depends="check-prereqs, create-bin-dir">
114152
<!--
@@ -137,7 +175,7 @@ limitations under the License.
137175
</javac>
138176
</target>
139177

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">
141179
<!--
142180
The Ant javac task only checks time dependencies between .java files and their .class files,
143181
so fails to recompile in situations such as the signatures of a dependent method changing.
@@ -167,7 +205,7 @@ limitations under the License.
167205
</javac>
168206
</target>
169207

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">
171209
<property name="addExports" value="--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED" />
172210
<javac srcdir="${openjdk_test_debugging_src_dir}"
173211
destdir="${openjdk_test_debugging_bin_dir}"

0 commit comments

Comments
 (0)