[build] vm-finder no longer blindly continues if trying to find an unknown VM version:

find-vm had the annoying property that on `/usr/libexec/java_home` based systems (Such as macs), trying to find the location of an unknown VM version just gave you the default, meaning `ant test.javac25` would run on 24. Now, it errors.
This commit is contained in:
Reinier Zwitserloot committed 2025-08-01 00:09:00 +02:00
1 parent 6b2af3f81f
commit f0e3dacf47
1 file changed
+1 -1
+1 -1
View File
@@ -62,7 +62,7 @@ and rerun the build; this build is capable of finding VMs automatically on many
<local name="java_home.result" />
<exec newenvironment="true" executable="${exe.java_home}" errorproperty="discard" outputproperty="java_home.answer" failifexecutionfails="false" resultproperty="java_home.result">
<env key="floobargle" value="FOO" /> <!-- we do not want JAVA_HOME to be set. This requires newenvironment="true" AND some sort of env value -->
<arg value="-v" />
<arg value="-Fv" />
<arg value="${find-vm.version}" />
</exec>
<condition property="jvm.loc" value="${java_home.answer}">