Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » How to add aspects to multiple eclipse plugin projects?
How to add aspects to multiple eclipse plugin projects? [message #579490] Tue, 11 May 2004 01:26
Michael Scharf is currently offline Michael ScharfFriend
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
Previous Topic:Problems with HelloWorld example with eclipse 3.0M8
Next Topic:Problems with HelloWorld example with eclipse 3.0M8
Goto Forum:
  


Current Time: Mon May 13 17:14:48 GMT 2024

Powered by FUDForum. Page generated in 0.02499 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top