MCPcopy Index your code
hub / github.com/apache/tomcat / getClassNameJreDir

Method getClassNameJreDir

java/jakarta/el/ExpressionFactory.java:356–373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 1

discoverClassNameMethod · 0.95

Calls 6

messageMethod · 0.95
canReadMethod · 0.65
loadMethod · 0.65
getPropertyMethod · 0.65
isEmptyMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected