/** * Get the name of the configBase. * For use with JMX management. */ public String getConfigBaseName() { return configBase().getAbsolutePath(); }
/** * Get the name of the configBase. * For use with JMX management. */ public String getConfigBaseName() { return configBase().getAbsolutePath(); }
/** * Get the name of the configBase. * For use with JMX management. */ public String getConfigBaseName() { return configBase().getAbsolutePath(); }
/** * Get the name of the configBase. * For use with JMX management. */ public String getConfigBaseName() { return configBase().getAbsolutePath(); }
/** * Get the name of the configBase. * For use with JMX management. */ public String getConfigBaseName() { return configBase().getAbsolutePath(); }
/** * Get the name of the configBase. * For use with JMX management. */ public String getConfigBaseName() { return configBase().getAbsolutePath(); }
/** * Get the name of the configBase. * For use with JMX management. */ public String getConfigBaseName() { return configBase().getAbsolutePath(); }
/** * Get the name of the configBase. * For use with JMX management. */ public String getConfigBaseName() { return configBase().getAbsolutePath(); }
/** * Process a "start" event for this Host. */ public void start() { if (log.isLoggable(Level.FINE)) log.log(Level.FINE, LogFacade.PROCESSING_START); if (host.getDeployOnStartup()) { deployApps(); } else { // Deploy descriptors anyway (it should be equivalent to being // part of server.xml) File configBase = configBase(); if (configBase.exists() && configBase.isDirectory()) { String configFiles[] = configBase.list(); deployDescriptors(configBase, configFiles); } } }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps() { if (!(host instanceof Deployer)) return; File appBase = appBase(); if (!appBase.exists() || !appBase.isDirectory()) return; File configBase = configBase(); if (configBase.exists() && configBase.isDirectory()) { String configFiles[] = configBase.list(); deployDescriptors(configBase, configFiles); } String files[] = appBase.list(); deployWARs(appBase, files); deployDirectories(appBase, files); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps() { File appBase = appBase(); File configBase = configBase(); // Deploy XML descriptors from configBase deployDescriptors(configBase, configBase.list()); // Deploy WARs, and loop if additional descriptors are found deployWARs(appBase, appBase.list()); // Deploy expanded folders deployDirectories(appBase, appBase.list()); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps(String name) { File appBase = appBase(); File configBase = configBase(); ContextName cn = new ContextName(name); String baseName = cn.getBaseName(); // Deploy XML descriptors from configBase File xml = new File(configBase, baseName + ".xml"); if (xml.exists()) deployDescriptor(cn, xml, baseName + ".xml"); // Deploy WARs, and loop if additional descriptors are found File war = new File(appBase, baseName + ".war"); if (war.exists()) deployWAR(cn, war, baseName + ".war"); // Deploy expanded folders File dir = new File(appBase, baseName); if (dir.exists()) deployDirectory(cn, dir, baseName); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps(String name) { File appBase = appBase(); File configBase = configBase(); ContextName cn = new ContextName(name); String baseName = cn.getBaseName(); // Deploy XML descriptors from configBase File xml = new File(configBase, baseName + ".xml"); if (xml.exists()) deployDescriptor(cn, xml, baseName + ".xml"); // Deploy WARs, and loop if additional descriptors are found File war = new File(appBase, baseName + ".war"); if (war.exists()) deployWAR(cn, war, baseName + ".war"); // Deploy expanded folders File dir = new File(appBase, baseName); if (dir.exists()) deployDirectory(cn, dir, baseName); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps(String name) { File appBase = appBase(); File configBase = configBase(); String baseName = getConfigFile(name); String docBase = getConfigFile(name); // Deploy XML descriptors from configBase File xml = new File(configBase, baseName + ".xml"); if (xml.exists()) deployDescriptor(name, xml, baseName + ".xml"); // Deploy WARs, and loop if additional descriptors are found File war = new File(appBase, docBase + ".war"); if (war.exists()) deployWAR(name, war, docBase + ".war"); // Deploy expanded folders File dir = new File(appBase, docBase); if (dir.exists()) deployDirectory(name, dir, docBase); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps(String name) { File appBase = appBase(); File configBase = configBase(); ContextName cn = new ContextName(name); String baseName = cn.getBaseName(); // Deploy XML descriptors from configBase File xml = new File(configBase, baseName + ".xml"); if (xml.exists()) deployDescriptor(cn, xml, baseName + ".xml"); // Deploy WARs, and loop if additional descriptors are found File war = new File(appBase, baseName + ".war"); if (war.exists()) deployWAR(cn, war, baseName + ".war"); // Deploy expanded folders File dir = new File(appBase, baseName); if (dir.exists()) deployDirectory(cn, dir, baseName); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps() { File appBase = appBase(); File configBase = configBase(); String[] filteredAppPaths = filterAppPaths(appBase.list()); // Deploy XML descriptors from configBase deployDescriptors(configBase, configBase.list()); // Deploy WARs deployWARs(appBase, filteredAppPaths); // Deploy expanded folders deployDirectories(appBase, filteredAppPaths); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps() { File appBase = appBase(); File configBase = configBase(); String[] filteredAppPaths = filterAppPaths(appBase.list()); // Deploy XML descriptors from configBase deployDescriptors(configBase, configBase.list()); // Deploy WARs, and loop if additional descriptors are found deployWARs(appBase, filteredAppPaths); // Deploy expanded folders deployDirectories(appBase, filteredAppPaths); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps() { File appBase = appBase(); File configBase = configBase(); String[] filteredAppPaths = filterAppPaths(appBase.list()); // Deploy XML descriptors from configBase deployDescriptors(configBase, configBase.list()); // Deploy WARs deployWARs(appBase, filteredAppPaths); // Deploy expanded folders deployDirectories(appBase, filteredAppPaths); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps() { File appBase = appBase(); File configBase = configBase(); String[] filteredAppPaths = filterAppPaths(appBase.list()); // Deploy XML descriptors from configBase deployDescriptors(configBase, configBase.list()); // Deploy WARs, and loop if additional descriptors are found deployWARs(appBase, filteredAppPaths); // Deploy expanded folders deployDirectories(appBase, filteredAppPaths); }
/** * Deploy applications for any directories or WAR files that are found * in our "application root" directory. */ protected void deployApps() { File appBase = appBase(); File configBase = configBase(); String[] filteredAppPaths = filterAppPaths(appBase.list()); // Deploy XML descriptors from configBase deployDescriptors(configBase, configBase.list()); // Deploy WARs, and loop if additional descriptors are found deployWARs(appBase, filteredAppPaths); // Deploy expanded folders deployDirectories(appBase, filteredAppPaths); }