https://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html

There is one for skipping jar files:

tomcat.util.scan.StandardJarScanFilter.jarsToSkip

I then looked at the source for TldScanner, here is the scanResourcePaths 
function:

    /**
     * Scan web application resources for TLDs, recursively.
     *
     * @param startPath the directory resource to scan
     * @throws IOException  if there was a problem scanning for or loading a TLD
     * @throws SAXException if there was a problem parsing a TLD
     */
    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);
                }
            }
        }
    }

It skips /WEB-INF/classes/ and /WEB-INF/lib/, but it does not check any 
property to skip user defined paths.

- Matt


-----Original Message-----
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Thursday, April 27, 2017 5:05 PM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: Skip resource path in TLD scanner?

On 27/04/17 21:17, Matt Cosentino wrote:
> I need to skip some of the resource paths within WEB-INF. I know 
> there's a property for skipping jar files, but I couldn't find one for 
> resource paths. I reported this as a bug and was told that the 
> property exists. Where is it?

Where have you looked?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to