diff options
author | Vladislav Rassokhin <vladrassokhin@gmail.com> | 2015-05-14 15:13:05 +0300 |
---|---|---|
committer | Vladislav Rassokhin <vladrassokhin@gmail.com> | 2015-05-14 15:13:05 +0300 |
commit | 62f337f0943a87e0db36b01835bb61937909139c (patch) | |
tree | f3e6f06cf993724ca9fa061c46ef8091f9b85ae7 /installer | |
parent | 3d20c6680ce9a562ec8eeeeabc1e8a492a53c76c (diff) | |
download | dcevm-62f337f0943a87e0db36b01835bb61937909139c.tar.gz dcevm-62f337f0943a87e0db36b01835bb61937909139c.zip |
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/`
Diffstat (limited to 'installer')
-rw-r--r-- | installer/src/main/java/com/github/dcevm/installer/ConfigurationInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |