Community
Participate
Working Groups
currently, this is possible: Export-Package: com.example.aspects;aspects:="MyAspect1,MyAspect2,MyAspect3" It there are just few aspects in the exported package, this is good for registering aspects. Unfortunately, if you have a lot of aspects to register, this would become unhandy. A more flexible solution could use a regex to identify aspects in the exported package: Export-Package: com.example.aspects;aspects:=".*Aspect\d+" This should identify/register any aspects whose name match the given regex.
Created attachment 140066 [details] Enables aspects registration by regex Usage example: Export-Package: com.example.aspects;aspects="^.*TestUnit" Note: the ^ at the beginning of the regex denotes the matching text (aspect name). In general, this is not mandatory for a regex to be compiled, but this patch uses the starting ^ to check whether to search by regex or not, i.e. if you omit ^ at the beginning, the patch will do nothing.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.