private void channelIncludeDirectory(String dir) { List files = fileResolver.getFiles(dir); for (Object file : files) { String src = (String) file; channelIncludeFile(src); } }
private void channelIncludeDirectory(String dir) { List files = fileResolver.getFiles(dir); for (Object file : files) { String src = (String) file; channelIncludeFile(src); } }
private void channelInclude(Node channelInclude) { // Validation allowedAttributesOrElements(channelInclude, CHANNEL_INCLUDE_CHILDREN); String src = getAttributeOrChildElement(channelInclude, SRC_ATTR); String dir = getAttributeOrChildElement(channelInclude, DIRECTORY_ATTR); if (src.length() > 0) { channelIncludeFile(src); } else if (dir.length() > 0) { channelIncludeDirectory(dir); } else { // The include element ''{0}'' must specify either the ''{1}'' or ''{2}'' attribute. ConfigurationException ex = new ConfigurationException(); ex.setMessage(MISSING_INCLUDE_ATTRIBUTES, new Object[]{channelInclude.getNodeName(), SRC_ATTR, DIRECTORY_ATTR}); throw ex; } }
private void channelInclude(Node channelInclude) { // Validation allowedAttributesOrElements(channelInclude, CHANNEL_INCLUDE_CHILDREN); String src = getAttributeOrChildElement(channelInclude, SRC_ATTR); String dir = getAttributeOrChildElement(channelInclude, DIRECTORY_ATTR); if (src.length() > 0) { channelIncludeFile(src); } else if (dir.length() > 0) { channelIncludeDirectory(dir); } else { // The include element ''{0}'' must specify either the ''{1}'' or ''{2}'' attribute. ConfigurationException ex = new ConfigurationException(); ex.setMessage(MISSING_INCLUDE_ATTRIBUTES, new Object[]{channelInclude.getNodeName(), SRC_ATTR, DIRECTORY_ATTR}); throw ex; } }