protected void scanResourcePaths ( String startPath ) throws IOException , SAXException { Set < String > dirList = context . getResourcePaths ( startPath ) ; if ( dirList != null ) { for ( String path : dirList ) { if ( path . startsWith ( "/WEB-INF/classes/" ) ) { // Skip: JSP.7.3.1 } else if ( path . startsWith ( "/WEB-INF/lib/" ) ) { // Skip: JSP.7.3.1 } else if ( path . endsWith ( "/" ) ) { scanResourcePaths ( path ) ; } else if ( path . startsWith ( "/WEB-INF/tags/" ) ) { // JSP 7.3.1: in /WEB-INF/tags only consider implicit.tld if ( path . endsWith ( "/implicit.tld" ) ) { parseTld ( path ) ; } } else if ( path . endsWith ( TLD_EXT ) ) { parseTld ( path ) ; } } } }
Scan web application resources for TLDs recursively .