Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Exporting "Deployable plugin with AspectJ support" yields plugin with aspects missing
Exporting "Deployable plugin with AspectJ support" yields plugin with aspects missing [message #595466] Thu, 30 November 2006 08:24
Michael Moser is currently offline Michael Moser
Messages: 914
Registered: July 2009
Senior Member
I am having a major problem generating a "Deployable Plug-in with
AspectJ support":

I have an eclipse plugin project (it also has the "AspectJ nature") that
contains about 10 aspects, i.e. .aj files. The project also has a lib
directory which contains about 12 .jar files that are used by my
application. Into 3 of these 12 .jar files aspects are woven by the
above aspects (these .jar files are therefore also listed on the AspectJ
inpath tab).

Everything compiles fine and I can start and execute the plugin using an
eclipse runtime workbench, which also works perfectly.

Now I want to bundle things up into some easy deployable form. So I
choose File => Export... => Deployable Plug-in with AspectJ support.
I select the plugin, enter the name of an archive file (say:
myplugin.zip) and hit "Finish".

Obviously at this point the files in the project are not simply packed
up into the target .zip file, but an entire rebuild takes place first.
At the end the .zip file is generated and - as I checked - contains all
files (including the .jar files in the lib directory).

But when I then take that generated .zip and unpack it into the target
system's eclipse directory and then start eclipse and execute the plugin
I get runtime errors like:
---------------------
java.lang.NoSuchMethodError: myPlugin/MyClass.markChanged()V
at
myPlugin/observability.ObservableAspect.ajc$interMethodDispa tch1$myPlugin_observability_ObservableAspect$myPlugin_MyClas s$markChanged(ObservableAspect.aj)
at
myPlugin.observability.ObservableAspect.ajc$afterReturning$m yPlugin_observability_ObservableAspect$2$4511a4b8(Observable Aspect.aj:76)
at ...
---------------------

markChanged() is one of these methods that should have been woven into
the 3 mentioned jars in lib. So, apparently, these methods are now
lacking and have NOT been woven into the .jar files by that last build
triggered by the export.

What am I missing or doing wrong here? Any ideas? Workarounds?

Michael

Ps.: This is on eclipse 3.2.1 and with the latest AJDT 1.4.1.
Previous Topic:AJDT New Feature: Select and copy from the Cross References view
Next Topic:AJDT 1.4.1 for Eclipse 3.2 released (and more!)
Goto Forum:
  


Current Time: Mon Jul 28 06:25:05 EDT 2014

Powered by FUDForum. Page generated in 0.03154 seconds