Ignore vendor when selecting JVMs #25835

This commit is contained in:
Johan Andrén 2018-10-30 10:51:30 +01:00 committed by GitHub
parent fafc59b19d
commit 6329a7b77e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
/**
/*
* Copyright (C) 2016-2018 Lightbend Inc. <https://www.lightbend.com>
*/

View file

@ -135,8 +135,8 @@ object CrossJava {
def javaHomes: Vector[(String, File)] =
wrapNull(base.list())
.collect {
case dir@JavaHomeDir(vendor, m, n) =>
val v = JavaVersion(nullBlank(m) + n).withVendor(vendor).toString
case dir@JavaHomeDir(_, m, n) =>
val v = JavaVersion(nullBlank(m) + n).toString
if ((base / dir / "Contents" / "Home").exists) v -> (base / dir / "Contents" / "Home")
else v -> (base / dir)
}