Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: [NEWSDELIVER] Using weaved plugin in eclipse


Hi,

How are you packaging your aspect? Is it in the same JAR as classes that comprise the plug-in, a separate JAR in the plug-in or a separate plug-in? Depending on the function the last option would be the best because that way you could handle the aspectjrt.jar dependency. Alternatively you can have a look at repackaging aspectjrt.jar yourself (depending on how much of it you need): http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg05522.html.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx

http://w3.hursley.ibm.com/~websterm/

To:        undisclosed-recipients:;
cc:        
Subject:        [NEWSDELIVER] Using weaved plugin in eclipse



Hi,

I added some methods to a class in a plugin that I am not allowed to
change the source using aspectJ. When used in non-eclipse environment, the
new methods in the plugin can be called without any problem by putting
both the plugin jar and aspectjrt.jar on the classpath. However, I found I
was not able to test the weaved plugin in Eclipse since there is no way to
put the aspectjrt.jar on the classpath of the plugin except changing the
dependency which I cannot do.

Is there a way to work around this or the approach I took is totally
wrong? Thanks a lot.  





Back to the top