/** * Loads resources recursively. * @param files The base paths to look for container.xml * @throws ContainerConfigException */ private void loadResources(String[] files, JSONObject all) throws ContainerConfigException { try { for (String entry : files) { LOG.info("Reading container config: " + entry); String content = ResourceLoader.getContent(entry); if (content == null || content.length() == 0) throw new IOException("The file " + entry + "is empty"); loadFromString(content, all); } } catch (IOException e) { throw new ContainerConfigException(e); } }
/** * Loads resources recursively. * @param files The base paths to look for container.xml * @throws ContainerConfigException */ private void loadResources(String[] files, JSONObject all) throws ContainerConfigException { try { for (String entry : files) { LOG.info("Reading container config: " + entry); String content = ResourceLoader.getContent(entry); if (content == null || content.length() == 0) throw new IOException("The file " + entry + "is empty"); loadFromString(content, all); } } catch (IOException e) { throw new ContainerConfigException(e); } }
"The file '" + file.getAbsolutePath() + "' doesn't exist."); loadFromString(ResourceLoader.getContent(file), all); } else { if (LOG.isLoggable(Level.FINEST))
"The file '" + file.getAbsolutePath() + "' doesn't exist."); loadFromString(ResourceLoader.getContent(file), all); } else { if (LOG.isLoggable(Level.FINEST))