public boolean isExcluded ( String path ) { if ( inclusions != null && ! inclusions . isEmpty ( ) ) { if ( ! matchesList ( path , inclusions , false ) ) { log . debug ( "{} does not match an inclusion: skipping..." , path ) ; return true ; } } if ( exclusions == null ) { return false ; } if ( matchesList ( path , exclusions , true ) ) { log . debug ( "{} matches exclusions: skipping..." , path ) ; return true ; } return false ; }
Returns true if the path is included and not excluded . A path is included if the inclusions list is null or empty or the path matches an item in the list .