Another attempt to fix the build

This commit is contained in:
BoykoAlex
2018-11-07 17:27:06 -05:00
parent a6530dc5c6
commit 2a258bae99

View File

@@ -41,8 +41,7 @@ public class BootProjectUtil {
public static Path javaHomeFromLibJar(Path libJar) {
for (Path home = libJar; home.getParent() != null; home = home.getParent()) {
if (Files.exists(home.resolve("release")) || Files.exists(home.resolve("release.txt"))
|| Files.exists(home.resolve("RELEASE.html"))) {
if (Files.exists(home.resolve("bin")) && Files.exists(home.resolve("README.html"))) {
return home;
}
}