in src/main/java/org/apache/sling/sitemap/impl/SitemapScheduler.java [198:218]
protected boolean isExcluded(Resource sitemapRoot) {
// verify that the sitemapRoot is in the schedulers search path
if (!sitemapRoot.getPath().equals(searchPath) && !sitemapRoot.getPath().startsWith(searchPath + "/")) {
log.debug("Exclude sitemap root outside of the configured search path '{}': {}", searchPath, sitemapRoot.getPath());
return true;
}
// verify if the sitemapRoot is included
if (includePaths != null && includePaths.matches(sitemapRoot.getPath()) == null) {
log.debug("Sitemap root is not included: {}", sitemapRoot.getPath());
return true;
}
// verify if the sitemapRoot is not excluded
if (excludePaths != null && excludePaths.matches(sitemapRoot.getPath()) != null) {
log.debug("Sitemap root is explicitly excluded: {}", sitemapRoot.getPath());
return true;
}
return false;
}