> Looking at this I have got one question: Are the system bundle > (org.eclipse.osgi) and the framework extension fragment > (org.eclipse.equinox.weaving.hook) colocated, i.e. in the same > directory? That is neccessary for Equinox to recognize the framework > extension (see http://wiki.eclipse.org/index.php/Adaptor_Hooks for > details) => Equinox Aspects will not work if the both bundles are not > colocated.
Yes, I have all bundles within the same directory. - org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar (file) - org.eclipse.equinox.weaving.hook_1.0.0.200808061839.jar (file) - org.eclipse.osgi_3.4.0.v20080605-1900.jar (file) - org.aspectj.weaver_1.6.1.20080703120000 (dir) - org.aspectj.runtime_1.6.1.20080703120000 (dir) (like it is delivered with the equinox-aspects-demo-hello.zip) Additionally I copied the two exported bundles - org.eclipse.equinox.weaving.demo.hello.aspects - org.eclipse.equinox.weaving.demo.hello into the same directory. Than I created a configuration directory where I added the config.ini with the necessary bundles and the hook information osgi.framework.extensions=org.eclipse.equinox.weaving.hook now I start it from the command line in the directory where all the bundles are located. Actually the org.eclipse.equinox.weaving.demo.hello just works fine for me, but without the augmentation through the aspect of course. _______________________________________________ equinox-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/equinox-dev
