Static Site Builder Util (SBU) 1.0 Documentation

Index Introduction File Filters File Handlers Default Source Parser Data Providers Extending SBU

File Filters

As described before a file filter defines if an instruction accepts a source file ('fires'). SBU comes with various build-in implementations that allow the user to build logical expressions via the combination of these. The availbable filters will be introduced now.

All Filter (all-filter)

Accepts any file.

Filter Chain (filter-chain)

Combines multiple other file filters in AND (every file filter must acccept the file) or OR (at least one file filter must accept the file) mode. Default mode is OR. The child filters have to be specified as list of 'file-filter' elements.

Not Filter (not-filter)

This filter inverses the result of another one. The filter has to be specified as a child 'filter' element.

Path Filter (path-filter)

Checks the full relative source file path (including the file name) for matching a pattern specified by the 'pattern' attribute. The pattern is a regular expression like defined via java.util.regex.Pattern.

Simple Path Filter (simple-path-filter)

Checks the full relative source file path (including the file name) for matching a pattern specified by the 'pattern' attribute. Wildcards (the '*' character) may be used.

Suffix Filter

Checks a file's suffix for matching with that one specified by the 'suffix' attribute. The optional 'case-sensitive' attribute (true/false) specifies if the test shall be case sensitive or not. The default mode is case insensitive.

previous page next page