Home » Language IDEs » AspectJ » Why is weaving in aspects from another project not working?
Why is weaving in aspects from another project not working? [message #33295] |
Thu, 15 April 2004 16:08 |
Eclipse User |
|
|
|
Originally posted by: nedim.codemonkeys.org
I asked similar question couple of weeks ago but got no response. So let
me rephrase it.
When weaving in aspects from another project I have to compile and jar
that other project and specify it in "Project Properties->AspectJ->Input
jars (aspects)", even though I have both projects in my Eclipse workspace.
Why is it not possible to just use aspects from that other projects if
project dependency is properly set?
This is really pain it the behind and limits the usability of AJDT a
great deal. I can't think of but simplest work that would all be
contained in single Eclipse project.
Thanks.
|
|
|
Re: Why is weaving in aspects from another project not working? [message #33409 is a reply to message #33295] |
Thu, 15 April 2004 19:32 |
Eclipse User |
|
|
|
Originally posted by: clemas.uk.ibm.com
Hi,
With the current codebase (up to AJDT 1.1.7) - the way to achieve what you
want to do is using Eclipse Linked Source Folders. Suppose you have
Project A which is pure Java and Project B that is AspectJ. You want to
apply your aspects from Project B to Project A. You open the
ProjectProperties for Project B and add a new source folder (through the
java build path tab). When you add the source folder, make it a linked
source folder that points to the source folder for ProjectA.
When setup this, ProjectA can build as a pure java project. When you
build ProjectB it will apply your aspects to the source from ProjectA and
the resulting output will be put into the bin directory for ProjectB.
The Lancaster codebase, with its tighter integration with Eclipse, will
work in a much more seamless fashion.
Andy.
====
Andy Clement
AJDT Development
|
|
|
Re: Why is weaving in aspects from another project not working? [message #40456 is a reply to message #33409] |
Mon, 30 August 2004 22:04 |
Eclipse User |
|
|
|
Originally posted by: k.b.com
Andy Clement wrote:
> Hi,
>
> With the current codebase (up to AJDT 1.1.7) - the way to achieve what you
> want to do is using Eclipse Linked Source Folders. Suppose you have
> Project A which is pure Java and Project B that is AspectJ. You want to
> apply your aspects from Project B to Project A. You open the
> ProjectProperties for Project B and add a new source folder (through the
> java build path tab). When you add the source folder, make it a linked
> source folder that points to the source folder for ProjectA.
>
> When setup this, ProjectA can build as a pure java project. When you
> build ProjectB it will apply your aspects to the source from ProjectA and
> the resulting output will be put into the bin directory for ProjectB.
>
> The Lancaster codebase, with its tighter integration with Eclipse, will
> work in a much more seamless fashion.
>
> Andy.
> ====
> Andy Clement
> AJDT Development
>
I am working in WSAD, which is based on 2.x eclipse, and do not see a
way to use the linked folder concept. Any ideas on how I might get
things working? We have multiple projects in a very complex overall
project, and I am trying to use aspects to aid in testing / mocking, etc.
Thanks in advance,
Keith Lancaster
|
|
|
Re: Why is weaving in aspects from another project not working? [message #40487 is a reply to message #40456] |
Tue, 31 August 2004 16:43 |
Eclipse User |
|
|
|
Originally posted by: mchapman.uk.ibm.com
On Mon, 30 Aug 2004 17:04:23 -0500, Keith wrote:
> I am working in WSAD, which is based on 2.x eclipse, and do not see a way
> to use the linked folder concept. Any ideas on how I might get things
> working? We have multiple projects in a very complex overall project, and
> I am trying to use aspects to aid in testing / mocking, etc.
Hi Keith,
This was answered a while ago on the aspectj-users mailing list. Below is
a cut and paste.
Regards,
Matt.
---snip---
Re: [aspectj-users] AJDT - cross-project weaving in WSAD
* From: Adrian Powell <aspectj-users@xxxxxxxxxxxxxxxx>
* Date: Thu, 29 Jul 2004 09:38:05 -0700
* Delivered-to: aspectj-users@eclipse.org
Jean-Luc,
WSAD disables linking by default, so if you wish to use these
instructions, you will first need to enable linking (Window >
Preferences > Workbench > Linked Resources > Enable linked resources).
cheers,
-adrian.
---snip---
|
|
| | |
Re: Why is weaving in aspects from another project not working? [message #582972 is a reply to message #33409] |
Mon, 30 August 2004 22:04 |
Keith Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Andy Clement wrote:
> Hi,
>
> With the current codebase (up to AJDT 1.1.7) - the way to achieve what you
> want to do is using Eclipse Linked Source Folders. Suppose you have
> Project A which is pure Java and Project B that is AspectJ. You want to
> apply your aspects from Project B to Project A. You open the
> ProjectProperties for Project B and add a new source folder (through the
> java build path tab). When you add the source folder, make it a linked
> source folder that points to the source folder for ProjectA.
>
> When setup this, ProjectA can build as a pure java project. When you
> build ProjectB it will apply your aspects to the source from ProjectA and
> the resulting output will be put into the bin directory for ProjectB.
>
> The Lancaster codebase, with its tighter integration with Eclipse, will
> work in a much more seamless fashion.
>
> Andy.
> ====
> Andy Clement
> AJDT Development
>
I am working in WSAD, which is based on 2.x eclipse, and do not see a
way to use the linked folder concept. Any ideas on how I might get
things working? We have multiple projects in a very complex overall
project, and I am trying to use aspects to aid in testing / mocking, etc.
Thanks in advance,
Keith Lancaster
|
|
|
Re: Why is weaving in aspects from another project not working? [message #582996 is a reply to message #40456] |
Tue, 31 August 2004 16:43 |
Matt Chapman Messages: 429 Registered: July 2009 |
Senior Member |
|
|
On Mon, 30 Aug 2004 17:04:23 -0500, Keith wrote:
> I am working in WSAD, which is based on 2.x eclipse, and do not see a way
> to use the linked folder concept. Any ideas on how I might get things
> working? We have multiple projects in a very complex overall project, and
> I am trying to use aspects to aid in testing / mocking, etc.
Hi Keith,
This was answered a while ago on the aspectj-users mailing list. Below is
a cut and paste.
Regards,
Matt.
---snip---
Re: [aspectj-users] AJDT - cross-project weaving in WSAD
* From: Adrian Powell <aspectj-users@xxxxxxxxxxxxxxxx>
* Date: Thu, 29 Jul 2004 09:38:05 -0700
* Delivered-to: aspectj-users@eclipse.org
Jean-Luc,
WSAD disables linking by default, so if you wish to use these
instructions, you will first need to enable linking (Window >
Preferences > Workbench > Linked Resources > Enable linked resources).
cheers,
-adrian.
---snip---
|
|
| |
Goto Forum:
Current Time: Tue Sep 24 23:31:54 GMT 2024
Powered by FUDForum. Page generated in 0.04953 seconds
|