private void addTldLocationsFromWebInfTlds() throws IOException, SAXException { LOG.debug("Looking for TLD locations in servletContext:/WEB-INF/**/*.tld"); addTldLocationsFromServletContextResourceTlds("/WEB-INF"); }
private void addTldLocationsFromServletContextResourceTlds(String basePath) throws IOException, SAXException { Set unsortedResourcePaths = servletContext.getResourcePaths(basePath); if (unsortedResourcePaths != null) { List/*<String>*/ resourcePaths = new ArrayList/*<String>*/(unsortedResourcePaths); Collections.sort(resourcePaths); // First process the files... for (Iterator it = resourcePaths.iterator(); it.hasNext(); ) { String resourcePath = (String) it.next(); if (resourcePath.endsWith(".tld")) { addTldLocationFromTld(new ServletContextTldLocation(resourcePath)); } } // ... only later the directories for (Iterator it = resourcePaths.iterator(); it.hasNext(); ) { String resourcePath = (String) it.next(); if (resourcePath.endsWith("/")) { addTldLocationsFromServletContextResourceTlds(resourcePath); } } } }
private void addTldLocationsFromWebInfTlds() throws IOException, SAXException { LOG.debug("Looking for TLD locations in servletContext:/WEB-INF/**/*.tld"); addTldLocationsFromServletContextResourceTlds("/WEB-INF"); }
private void addTldLocationsFromWebInfTlds() throws IOException, SAXException { LOG.debug("Looking for TLD locations in servletContext:/WEB-INF/**/*.tld"); addTldLocationsFromServletContextResourceTlds("/WEB-INF"); }
private void addTldLocationsFromServletContextResourceTlds(String basePath) throws IOException, SAXException { Set unsortedResourcePaths = servletContext.getResourcePaths(basePath); if (unsortedResourcePaths != null) { List/*<String>*/ resourcePaths = new ArrayList/*<String>*/(unsortedResourcePaths); Collections.sort(resourcePaths); // First process the files... for (Iterator it = resourcePaths.iterator(); it.hasNext(); ) { String resourcePath = (String) it.next(); if (resourcePath.endsWith(".tld")) { addTldLocationFromTld(new ServletContextTldLocation(resourcePath)); } } // ... only later the directories for (Iterator it = resourcePaths.iterator(); it.hasNext(); ) { String resourcePath = (String) it.next(); if (resourcePath.endsWith("/")) { addTldLocationsFromServletContextResourceTlds(resourcePath); } } } }
private void addTldLocationsFromServletContextResourceTlds(String basePath) throws IOException, SAXException { Set unsortedResourcePaths = servletContext.getResourcePaths(basePath); if (unsortedResourcePaths != null) { List/*<String>*/ resourcePaths = new ArrayList/*<String>*/(unsortedResourcePaths); Collections.sort(resourcePaths); // First process the files... for (Iterator it = resourcePaths.iterator(); it.hasNext(); ) { String resourcePath = (String) it.next(); if (resourcePath.endsWith(".tld")) { addTldLocationFromTld(new ServletContextTldLocation(resourcePath)); } } // ... only later the directories for (Iterator it = resourcePaths.iterator(); it.hasNext(); ) { String resourcePath = (String) it.next(); if (resourcePath.endsWith("/")) { addTldLocationsFromServletContextResourceTlds(resourcePath); } } } }