result.append(host.getName()).append('/'); file = new File (getConfigBase(), result.toString());
file = new File(getConfigBase(), resourceName);
/** * Identify the host web.xml to be used and obtain an input source for * it. */ protected InputSource getHostWebXmlSource() { String resourceName = getHostConfigPath(Constants.HostWebXml); // In an embedded environment, configBase might not be set File configBase = getConfigBase(); if (configBase == null) return null; String basePath = null; try { basePath = configBase.getCanonicalPath(); } catch (IOException e) { log.error(sm.getString("contectConfig.baseError"), e); return null; } return getWebXmlSource(resourceName, basePath); }
/** * Identify the host web.xml to be used and obtain an input source for * it. */ protected InputSource getHostWebXmlSource() { String resourceName = getHostConfigPath(Constants.HostWebXml); // In an embedded environment, configBase might not be set File configBase = getConfigBase(); if (configBase == null) return null; String basePath = null; try { basePath = configBase.getCanonicalPath(); } catch (IOException e) { log.error(sm.getString("contectConfig.baseError"), e); return null; } return getWebXmlSource(resourceName, basePath); }
/** * Identify the host web.xml to be used and obtain an input source for * it. */ protected InputSource getHostWebXmlSource() { String resourceName = getHostConfigPath(Constants.HostWebXml); // In an embedded environment, configBase might not be set File configBase = getConfigBase(); if (configBase == null) return null; String basePath = null; try { basePath = configBase.getCanonicalPath(); } catch (IOException e) { log.error(sm.getString("contextConfig.baseError"), e); return null; } return getWebXmlSource(resourceName, basePath); }
/** * Identify the host web.xml to be used and obtain an input source for * it. */ protected InputSource getHostWebXmlSource() { String resourceName = getHostConfigPath(Constants.HostWebXml); // In an embedded environment, configBase might not be set File configBase = getConfigBase(); if (configBase == null) return null; String basePath = null; try { basePath = configBase.getCanonicalPath(); } catch (IOException e) { log.error(sm.getString("contectConfig.baseError"), e); return null; } return getWebXmlSource(resourceName, basePath); }
File hostContextFile = new File(getConfigBase(), getHostConfigPath(Constants.HostContextXml)); if (hostContextFile.exists()) {
File hostContextFile = new File(getConfigBase(), getHostConfigPath(Constants.HostContextXml)); if (hostContextFile.exists()) {
File hostContextFile = new File(getConfigBase(), getHostConfigPath(Constants.HostContextXml)); if (hostContextFile.exists()) {
File hostContextFile = new File(getConfigBase(), getHostConfigPath(Constants.HostContextXml)); if (hostContextFile.exists()) {
/** * Process the default configuration file, if it exists. */ protected void contextConfig() { // Open the default web.xml file, if it exists if( defaultContextXml==null && context instanceof StandardContext ) { defaultContextXml = ((StandardContext)context).getDefaultContextXml(); } // set the default if we don't have any overrides if( defaultContextXml==null ) getDefaultContextXml(); if (!context.getOverride()) { processContextConfig(new File(getBaseDir()), defaultContextXml); processContextConfig(getConfigBase(), getHostConfigPath(Constants.HostContextXml)); } if (context.getConfigFile() != null) processContextConfig(new File(context.getConfigFile()), null); }