/** * Loads resources recursively. * * @param files The base paths to look for container.xml * @throws ContainerConfigException when IO errors occur */ private static void loadResources(Iterable<String> files, List<Map<String, Object>> all) throws ContainerConfigException { try { for (String entry : files) { if (LOG.isLoggable(Level.INFO)) { LOG.logp(Level.INFO, classname, "loadResources", MessageKeys.READING_CONFIG, new Object[] {entry}); } String content = ResourceLoader.getContent(entry); if (content == null || content.length() == 0) throw new IOException("The file " + entry + "is empty"); all.add(loadFromString(content)); } } catch (IOException e) { throw new ContainerConfigException(e); } }
/** * Loads resources recursively. * * @param files The base paths to look for container.xml * @throws ContainerConfigException when IO errors occur */ private static void loadResources(Iterable<String> files, List<Map<String, Object>> all) throws ContainerConfigException { try { for (String entry : files) { if (LOG.isLoggable(Level.INFO)) { LOG.logp(Level.INFO, classname, "loadResources", MessageKeys.READING_CONFIG, new Object[] {entry}); } String content = ResourceLoader.getContent(entry); if (content == null || content.length() == 0) throw new IOException("The file " + entry + "is empty"); all.add(loadFromString(content)); } } catch (IOException e) { throw new ContainerConfigException(e); } }
/** * Loads resources recursively. * * @param files The base paths to look for container.xml * @throws ContainerConfigException when IO errors occur */ private static void loadResources(Iterable<String> files, List<Map<String, Object>> all) throws ContainerConfigException { try { for (String entry : files) { if (LOG.isLoggable(Level.INFO)) { LOG.logp(Level.INFO, classname, "loadResources", MessageKeys.READING_CONFIG, new Object[] {entry}); } String content = ResourceLoader.getContent(entry); if (content == null || content.length() == 0) throw new IOException("The file " + entry + "is empty"); all.add(loadFromString(content)); } } catch (IOException e) { throw new ContainerConfigException(e); } }
"The file '" + file.getAbsolutePath() + "' doesn't exist."); all.add(loadFromString(ResourceLoader.getContent(file))); } else { if (LOG.isLoggable(Level.FINEST))
"The file '" + file.getAbsolutePath() + "' doesn't exist."); all.add(loadFromString(ResourceLoader.getContent(file))); } else { if (LOG.isLoggable(Level.FINEST))
"The file '" + file.getAbsolutePath() + "' doesn't exist."); all.add(loadFromString(ResourceLoader.getContent(file))); } else { if (LOG.isLoggable(Level.FINEST))