How to add aspects to multiple eclipse plugin projects? [message #579490] |
Tue, 11 May 2004 01:26 |
Michael Scharf Messages: 301 Registered: July 2009 |
Senior Member |
|
|
Hi,
I want to "aspectize" multiple projects with AJDT/aspectj.
Suppose, I want to add a simple tracing aspect to all
public methods that are called "run".
public aspect TraceRun {
pointcut run(): execution(public * *.run(..));
before() : run() {
System.out.println("TRACE "+thisJoinPoint);
}
}
I want to add this aspect to the entire workbench or
at a set of projects. Ideally I would like to have
independent plugins/projects with aspects and "inject"
the code into my unmodified eclipse plugins. Is this
possible?
Here some concrete questions:
- Is aspectj supported for eclipse plugins or only for
stand alone applications?
- How to best add aspects to a a set of plugin projects?
- Can aspects cross project/plugin boundaries?
- Is there a better way than to copy the aspect into
each project?
<library name=" c:/eclipse/3.0M8/eclipse/plugins/org.aspectj.ajde_1.1.8/aspe ctjrt.jar ">
<export name="*"/>
</library>
- How to add the aspectjrt.jar to the projects?
- It is not clear to me where to put the lib for
plugin projects. I ended up adding the absolute
path "Runtime Library" into each plugin.xml
- How can I control adding the aspect (changes in the
.lst file seems to have no effect on plugins)
- Can I add the aspect without modifying existing projects?
Thanks for listening
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.02499 seconds