A filter implementation filtering {@link IvyEvent} based upon an event name and a filterexpression. The name will be matched against the event name using the {@link PatternMatcher} usedto construct this object. The filter expression is a string describing how the event should be filtered according to its attributes values. The matching between the filter values and the event attribute values is done using the {@link PatternMatcher} used to construct this object. Here aresome examples:
expression | effect |
type=zip | accepts event with a type attribute matching zip |
type=zip,jar | accepts event with a type attribute matching zip or jar |
type=src AND ext=zip | accepts event with a type attribute matching src AND an ext attribute matching zip |
type=src OR ext=zip | accepts event with a type attribute matching src OR an ext attribute matching zip |
NOT type=src | accepts event with a type attribute NOT matching src |
Combination of these can be used, but no parentheses are supported right now, so only the default priority can be used. The priority order is this one: AND OR NOT = This means that artifact=foo AND ext=zip OR type=src will match event with artifact matching foo AND (ext matching zip OR type matching src)
@since 1.4