MCPcopy Create free account
hub / github.com/apache/tomcat / beforeStart

Method beforeStart

java/org/apache/catalina/startup/HostConfig.java:1570–1579  ·  view source on GitHub ↗

Perform actions before the Host starts, including creating required directories.

()

Source from the content-addressed store, hash-verified

1568 * Perform actions before the Host starts, including creating required directories.
1569 */
1570 public void beforeStart() {
1571 if (host.getCreateDirs()) {
1572 File[] dirs = new File[] { host.getAppBaseFile(), host.getConfigBaseFile() };
1573 for (File dir : dirs) {
1574 if (!dir.mkdirs() && !dir.isDirectory()) {
1575 log.error(sm.getString("hostConfig.createDirs", dir));
1576 }
1577 }
1578 }
1579 }
1580
1581
1582 /**

Callers 1

lifecycleEventMethod · 0.95

Calls 6

getCreateDirsMethod · 0.65
getAppBaseFileMethod · 0.65
getConfigBaseFileMethod · 0.65
isDirectoryMethod · 0.65
errorMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected