"[WebModuleDeployEventListener] Handling event " + event.toString());
}
ConfigContext config = event.getConfigContext();
String moduleName = event.getModuleName();
WebModule webModule = getWebModuleAndUpdateCache(
config, moduleName, true);
//Do not deploy if enable is false
if (!isEnabled(event.getConfigContext(), moduleName)) {
return;
}
String location = webModule.getLocation();
// If module root is relative then prefix it with the
// location of where all the standalone modules for
// this server instance are deployed
File moduleBase = new File(location);
String modulesRoot = getWebContainer().getModulesRoot();
if (!moduleBase.isAbsolute()) {
location = modulesRoot+File.separator+location;
webModule.setLocation(location);
}
WebModuleConfig wmInfo = loadWebModuleConfig(webModule, config);
getWebContainer().enableWebModule(wmInfo, "null");
}