()
| 354 | } |
| 355 | |
| 356 | private static String getClassNameJreDir() { |
| 357 | File file = new File(PROPERTY_FILE); |
| 358 | if (file.canRead()) { |
| 359 | try (InputStream is = new FileInputStream(file)) { |
| 360 | Properties props = new Properties(); |
| 361 | props.load(is); |
| 362 | String value = props.getProperty(PROPERTY_NAME); |
| 363 | if (value != null && !value.trim().isEmpty()) { |
| 364 | return value.trim(); |
| 365 | } |
| 366 | } catch (FileNotFoundException e) { |
| 367 | // Should not happen - ignore it if it does |
| 368 | } catch (IOException ioe) { |
| 369 | throw new ELException(Util.message(null, "expressionFactory.readFailed", PROPERTY_FILE), ioe); |
| 370 | } |
| 371 | } |
| 372 | return null; |
| 373 | } |
| 374 | |
| 375 | private static String getClassNameSysProp() { |
| 376 | String value = System.getProperty(PROPERTY_NAME); |
no test coverage detected