Aspects across (Eclipse) projects [message #51916] |
Thu, 19 May 2005 20:16  |
Eclipse User |
|
|
|
Originally posted by: dan.haywood-associatesNOSPAM.co.uk
Is it possible - perhaps using INPATH - to get an aspect in one project to
weave classes in another. I'm sure it must be.
I have:
- project1 - holds a library I want to test
- project2 - holds POJO fixtures
- project3 - holds aspects that need to weave the POJOs in #2 to use
library in #1
- project4 - holds the tests
However, the aspects in #3 are not doing any weaving, or so it seems.
---
As a follow-on, these projects are actually plug-ins. I suspect I'll have
further problems here - any hints?
Many thanks
Dan
|
|
|
Re: Aspects across (Eclipse) projects [message #51968 is a reply to message #51916] |
Fri, 20 May 2005 12:05  |
Eclipse User |
|
|
|
Originally posted by: mchapman.uk.ibm.com
On Fri, 20 May 2005 00:16:12 +0000, Dan Haywood wrote:
> Is it possible - perhaps using INPATH - to get an aspect in one project to
> weave classes in another. I'm sure it must be.
>
> I have:
> - project1 - holds a library I want to test
> - project2 - holds POJO fixtures
> - project3 - holds aspects that need to weave the POJOs in #2 to use
> library in #1
> - project4 - holds the tests
>
> However, the aspects in #3 are not doing any weaving, or so it seems.
Yes, it is possible. Project 3 can set an inpath setting for the output
directory of project 2. The woven class files should then end up in the
output directory of project 3. You can use the show weave messages option
(under AspectJ Compiler properties > Other) to see what's happening.
> As a follow-on, these projects are actually plug-ins. I suspect I'll have
> further problems here - any hints?
Shouldn't be a problem. AJDT itself is a bunch of AspectJ plug-ins. Your
AspectJ-enabled plug-ins should have a dependency on
the org.aspectj.runtime plugin.
Regards,
Matt.
--
Matt Chapman
AJDT Development, http://www.eclipse.org/ajdt
|
|
|
Re: Aspects across (Eclipse) projects [message #588269 is a reply to message #51916] |
Fri, 20 May 2005 12:05  |
Eclipse User |
|
|
|
On Fri, 20 May 2005 00:16:12 +0000, Dan Haywood wrote:
> Is it possible - perhaps using INPATH - to get an aspect in one project to
> weave classes in another. I'm sure it must be.
>
> I have:
> - project1 - holds a library I want to test
> - project2 - holds POJO fixtures
> - project3 - holds aspects that need to weave the POJOs in #2 to use
> library in #1
> - project4 - holds the tests
>
> However, the aspects in #3 are not doing any weaving, or so it seems.
Yes, it is possible. Project 3 can set an inpath setting for the output
directory of project 2. The woven class files should then end up in the
output directory of project 3. You can use the show weave messages option
(under AspectJ Compiler properties > Other) to see what's happening.
> As a follow-on, these projects are actually plug-ins. I suspect I'll have
> further problems here - any hints?
Shouldn't be a problem. AJDT itself is a bunch of AspectJ plug-ins. Your
AspectJ-enabled plug-ins should have a dependency on
the org.aspectj.runtime plugin.
Regards,
Matt.
--
Matt Chapman
AJDT Development, http://www.eclipse.org/ajdt
|
|
|
Powered by
FUDForum. Page generated in 0.02811 seconds