/** * Look for jars that should be treated as if they are in WEB-INF/lib * * @param context the context to find the jars in * @return the list of jar resources found within context * @throws Exception if unable to find the jars */ protected List<Resource> findJars (WebAppContext context) throws Exception { List<Resource> jarResources = new ArrayList<Resource>(); List<Resource> webInfLibJars = findWebInfLibJars(context); if (webInfLibJars != null) jarResources.addAll(webInfLibJars); List<Resource> extraClasspathJars = findExtraClasspathJars(context); if (extraClasspathJars != null) jarResources.addAll(extraClasspathJars); return jarResources; }
/** * Look for jars that should be treated as if they are in WEB-INF/lib * * @param context the context to find the jars in * @return the list of jar resources found within context * @throws Exception if unable to find the jars */ protected List<Resource> findJars (WebAppContext context) throws Exception { List<Resource> jarResources = new ArrayList<Resource>(); List<Resource> webInfLibJars = findWebInfLibJars(context); if (webInfLibJars != null) jarResources.addAll(webInfLibJars); List<Resource> extraClasspathJars = findExtraClasspathJars(context); if (extraClasspathJars != null) jarResources.addAll(extraClasspathJars); return jarResources; }