MCPcopy Index your code
hub / github.com/apache/tomcat / filterAppPaths

Method filterAppPaths

java/org/apache/catalina/startup/HostConfig.java:424–447  ·  view source on GitHub ↗

Filter the list of application file paths to remove those that match the regular expression defined by Host#getDeployIgnore(). @param unfilteredAppPaths The list of application paths to filter @return The filtered list of application paths

(String[] unfilteredAppPaths)

Source from the content-addressed store, hash-verified

422 * @return The filtered list of application paths
423 */
424 protected String[] filterAppPaths(String[] unfilteredAppPaths) {
425 Pattern filter = host.getDeployIgnorePattern();
426 if (filter == null || unfilteredAppPaths == null) {
427 return unfilteredAppPaths;
428 }
429
430 List<String> filteredList = new ArrayList<>();
431 Matcher matcher = null;
432 for (String appPath : unfilteredAppPaths) {
433 if (matcher == null) {
434 matcher = filter.matcher(appPath);
435 } else {
436 matcher.reset(appPath);
437 }
438 if (matcher.matches()) {
439 if (log.isDebugEnabled()) {
440 log.debug(sm.getString("hostConfig.ignorePath", appPath));
441 }
442 } else {
443 filteredList.add(appPath);
444 }
445 }
446 return filteredList.toArray(new String[0]);
447 }
448
449
450 /**

Callers 1

deployAppsMethod · 0.95

Calls 8

resetMethod · 0.65
matchesMethod · 0.65
isDebugEnabledMethod · 0.65
debugMethod · 0.65
getStringMethod · 0.65
addMethod · 0.65
toArrayMethod · 0.45

Tested by

no test coverage detected