Search in sources :

Example 11 with StandardJarScanner

use of org.apache.tomcat.util.scan.StandardJarScanner in project tomcat by apache.

the class EmbeddedTomcat method skipTldsForResourceJars.

public static void skipTldsForResourceJars(Context context) {
    StandardJarScanner scanner = (StandardJarScanner) context.getJarScanner();
    StandardJarScanFilter filter = (StandardJarScanFilter) scanner.getJarScanFilter();
    filter.setTldSkip(filter.getTldSkip() + ",resources*.jar");
}
Also used : StandardJarScanner(org.apache.tomcat.util.scan.StandardJarScanner) StandardJarScanFilter(org.apache.tomcat.util.scan.StandardJarScanFilter)

Aggregations

StandardJarScanner (org.apache.tomcat.util.scan.StandardJarScanner)11 File (java.io.File)5 Tomcat (org.apache.catalina.startup.Tomcat)4 TomcatBaseTest (org.apache.catalina.startup.TomcatBaseTest)4 StandardJarScanFilter (org.apache.tomcat.util.scan.StandardJarScanFilter)4 Test (org.junit.Test)4 Context (org.apache.catalina.Context)3 StandardContext (org.apache.catalina.core.StandardContext)3 StandardRoot (org.apache.catalina.webresources.StandardRoot)3 JarScanner (org.apache.tomcat.JarScanner)3 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 List (java.util.List)2 ByteChunk (org.apache.tomcat.util.buf.ByteChunk)2 ServletContext (jakarta.servlet.ServletContext)1 RequestDumperFilter (org.apache.catalina.filters.RequestDumperFilter)1 WebappLoader (org.apache.catalina.loader.WebappLoader)1 ContextConfig (org.apache.catalina.startup.ContextConfig)1 JasperException (org.apache.jasper.JasperException)1 VirtualDirContext (org.apache.naming.resources.VirtualDirContext)1