Package org.apache.ivy.core.event
Class IvyEventFilter
java.lang.Object
org.apache.ivy.core.event.IvyEventFilter
A filter implementation filtering
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:
IvyEvent
based upon an event name and a filter
expression. The name will be matched against the event name using the PatternMatcher
used
to 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 PatternMatcher
used to construct this object. Here are
some 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 |
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
-
Constructor Summary
ConstructorsConstructorDescriptionIvyEventFilter
(String event, String filterExpression, PatternMatcher matcher) -
Method Summary