Community
Participate
Working Groups
It is possible to edit the aop.xml generated by the launcher, to add a <weaver> section and options for example, but if a <concrete-aspect> element is added to the <aspects> section it will be removed when the launcher is run. One solution would be to allow the user to supply their own aop.xml which will be automatically merged with the generated one by LTW. But having multiple META-INF/aop.xml files is problematic: it can cause warnings and because they are copied to the output folder, where they are on the classpath and picked by LTW, they can be overwritten. But using the System property "org.aspectj.weaver.loadtime.configuration" (see ClassLoaderWeavingAdaptor) allows multiple configuration files with different names. For example AJDT could generate aop.xml containing a warning that it should not be changed and create an empty user-aop.xml which the user is free to edit. The launcher would then simply add the follow to VM arguments: -Dorg.aspectj.weaver.loadtime.configuration=META-INF/user-aop.xml;META-INF/aop.xml The only drawback with this approach occurs when the user exports their application. They would either need to use this option themselves when launching the JVM or merge the aop.xml files by hand. An alternative approach would be to allow one aop.xml file to include another.
Will become more important when we start focusing on LTW support.
Won't get to this for 2.0.
Move to the 2.0.2 release.
No longer slated for the next release.