mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +00:00
[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:
1 file changed
+1
-1
@@ -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}">
|
||||
|
||||
Reference in new issue
Block a user