The include and exclude properties in the recorder config file tell the recorder which classes to record.
Class Inclusion Model
The model by which the recorder chooses which classes are to be recorded is as follows:
- By default, all classes are excluded from recording.
- You then specify which classes should be included.
- In case of a conflict between rules, where a class is both included and excluded at the same time, exclusion will take precendence.
- All classes in the java.** namespace are excluded by default in the recorder, so they cannot be included due to rule 3.
#com.MyClass will be *excluded* in this case
include = com.MyClass
exclude = com.MyClass
Include/Exclude Pattern Types
Include and Exclude properties takes 'class patterns' as values to select classes to include/exclude.
Selects entire com.myorg namespace. Any classname that begins with
com.myorg. will be selected.
Selects only the classes in the com.myorg package.
com.myorg.MyClass will be selected, but
com.myorg.pack1.MyClass2 will not.
Selects only the specified class