]> source.dussan.org Git - dcevm.git/commitdiff
Do not require jre directory to be prefixed with 'jre' 89/head
authorVladislav Rassokhin <vladrassokhin@gmail.com>
Thu, 14 May 2015 12:13:05 +0000 (15:13 +0300)
committerVladislav Rassokhin <vladrassokhin@gmail.com>
Thu, 14 May 2015 12:13:05 +0000 (15:13 +0300)
In case of some custom installation, e.g. i have special dcevm-enabled jre at `/opt/oracle-jre-bin-1.8.0.45-dcevm/`

installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java

index fd5b2c478393b83e3f678ff2484c74de32219791..e8fa53904d8060a61db09d2369a0c364d877d186 100644 (file)
@@ -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;
             }