Community
Participate
Working Groups
For testing I created a simple HelloWorld RCP Application with the 'New PlugIn- Project Wizard'. I converted it into an AspectJ project and added a product configuration. Then I created this simple Aspect: package rcpapp; public aspect TestAspect { public TestAspect(){ javax.swing.JOptionPane.showMessageDialog(null,"constructor!"); } pointcut inMethod() : call(* *(*)) && !within(TestAspect+); before():inMethod(){} } The desired MessageDialog appears when I run the product within the Eclipse IDE. But when I export it as an Eclipse product and run it from Windows the Messagebox does not appear. The created jar does not contain a compiled TestAspect.class and I think the other class files are not woven. I'm using Eclipse 3.1.
I found a solution: exporting the product first as Eclipse Product and afterwards as a deployable plugin with AspectJ support works for this example.
Changed severity to enhancement.
I use the ajdt to generate the build.xml, then check the "custom build" in the build page of plugin.xml description editior. Then, when I export the product, the class is woven.
This was added for AJDT 1.4