From 62f337f0943a87e0db36b01835bb61937909139c Mon Sep 17 00:00:00 2001 From: Vladislav Rassokhin Date: Thu, 14 May 2015 15:13:05 +0300 Subject: [PATCH] Do not require jre directory to be prefixed with 'jre' In case of some custom installation, e.g. i have special dcevm-enabled jre at `/opt/oracle-jre-bin-1.8.0.45-dcevm/` --- .../main/java/com/github/dcevm/installer/ConfigurationInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java b/installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java index fd5b2c47..e8fa5390 100644 --- a/installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java +++ b/installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java @@ -161,7 +161,7 @@ public enum ConfigurationInfo { // Utility methods to query installation directories public boolean isJRE(Path directory) { - if (Files.isDirectory(directory) && directory.getFileName().toString().startsWith("jre")) { + if (Files.isDirectory(directory)) { if (!Files.exists(directory.resolve(getJavaExecutable()))) { return false; } -- 2.39.5