| Summary: | configure a set of classloader for which weavers should not be created in an LTW scenario | ||
|---|---|---|---|
| Product: | [Tools] AspectJ | Reporter: | Andrew Clement <aclement> |
| Component: | LTWeaving | Assignee: | aspectj inbox <aspectj-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | ||
| Version: | 1.7.0 | ||
| Target Milestone: | 1.7.4 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Andrew Clement
unsetting the target field which is currently set for something already released Pushed this into the 1.7 branch (so will be in the 1.7.4 release). Two config mechanics: 1) System property, comma separated list of classnames: aj.weaving.loadersToSkip=com.foo.MyLoader,com.bar.SomeOtherLoader 2) aop.xml, in the options value: -loadersToSkip:com.foo.MyLoader,com.bar.SomeOtherLoader The former has had more testing than the latter. If anyone tries this out let me know if the 2nd option is behaving. As the aop.xml files are read *after* the weaver is initialized it is possible that (currently) the first loader of the type will get through, and only subsequent ones will not get a weaver. In a situation where you want to exclude 5000 Jsp loaders, if just 1 gets through that doesn't feel like a big deal, but this loophole should be closed later. |