Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #40513 is a reply to message #40487] Tue, 31 August 2004 18:01 Go to previous message
Eclipse UserFriend
Originally posted by: k.b.com

Matt Chapman wrote:
<snip> Hi Keith,
>
> This was answered a while ago on the aspectj-users mailing list. Below is
> a cut and paste.
>
> Regards,
>
> Matt.
>
Thanks! I should have looked in the archives - I was just looking at the
current list.

Thanks again,
Keith
Re: Why is weaving in aspects from another project not working? [message #577705 is a reply to message #33295] Thu, 15 April 2004 19:32 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
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 #582972 is a reply to message #33409] Mon, 30 August 2004 22:04 Go to previous message
Keith is currently offline KeithFriend
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 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
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---
Re: Why is weaving in aspects from another project not working? [message #583015 is a reply to message #40487] Tue, 31 August 2004 18:01 Go to previous message
Keith is currently offline KeithFriend
Messages: 7
Registered: July 2009
Junior Member
Matt Chapman wrote:
<snip> Hi Keith,
>
> This was answered a while ago on the aspectj-users mailing list. Below is
> a cut and paste.
>
> Regards,
>
> Matt.
>
Thanks! I should have looked in the archives - I was just looking at the
current list.

Thanks again,
Keith
Previous Topic:Advice information for classes in other projects
Next Topic:Duplicate Eclipse classes in aspectjtools.jar ?!
Goto Forum:
  


Current Time: Fri Apr 19 20:25:32 GMT 2024

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

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

Back to the top