private void loadResources(List<String> resources, Map<String,FeatureNode> featureMapBuilder) throws GadgetException { try { for (String resource : resources) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Processing resource: " + resource); } String content = getResourceContent(resource); Uri parent = new UriBuilder().setScheme(RESOURCE_SCHEME).setPath(resource).toUri(); loadFeature(parent, content, featureMapBuilder); } } catch (IOException e) { throw new GadgetException(GadgetException.Code.INVALID_PATH, e); } }
private void loadResources(List<String> resources, Map<String,FeatureNode> featureMapBuilder) throws GadgetException { try { for (String resource : resources) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Processing resource: " + resource); } String content = getResourceContent(resource); Uri parent = new UriBuilder().setScheme(RESOURCE_SCHEME).setPath(resource).toUri(); loadFeature(parent, content, featureMapBuilder); } } catch (IOException e) { throw new GadgetException(GadgetException.Code.INVALID_PATH, e); } }
for (String resource : getResourceContent(location).split("[\r\n]+")) { resource = resource.trim(); if (resource.length () > 0 && resource.charAt(0) != '#') {
for (String resource : getResourceContent(location).split("[\r\n]+")) { resource = resource.trim(); if (resource.length () > 0 && resource.charAt(0) != '#') {