Bug 102129 - Provide an 'Export Eclipse product with AspectJ support' wizard
Summary: Provide an 'Export Eclipse product with AspectJ support' wizard
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-29 05:41 EDT by Stephan CLA
Modified: 2006-07-20 08:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan CLA 2005-06-29 05:41:53 EDT
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.
Comment 1 Stephan CLA 2005-06-29 08:03:45 EDT
I found a solution:

exporting the product first as Eclipse Product and afterwards as a deployable 
plugin with AspectJ support works for this example.
Comment 2 Sian January CLA 2005-08-16 06:33:24 EDT
Changed severity to enhancement.
Comment 3 SimonLei CLA 2006-01-24 00:18:05 EST
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.
Comment 4 Matt Chapman CLA 2006-07-20 08:04:59 EDT
This was added for AJDT 1.4