Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Sharing aspects between AspectJ projects
Sharing aspects between AspectJ projects [message #26794] Wed, 22 October 2003 16:59 Go to next message
Eclipse UserFriend
Originally posted by: seank.nulogy.com

Hi all,

I'm using ajdt 1.1.4 with two AspectJ projects. The second depends on the
first for some classes. The first project also has aspects that i want to
be applied to classes in the second project. I know that my pointcuts are
working properly (because the two projects used to be one) but the aspects
aren't being applied to the second project's classes. Am i missing
something really basic here or is there no way of sharing aspects between
projects short of jaring up the aspects and specifying the aspect jar as an
input aspect jar to my second project?

Please let me know if i've missed something really obvious in the docs or if
this really is a limitation.

Thanks

Sean Kirby
Re: Sharing aspects between AspectJ projects [message #27038 is a reply to message #26794] Fri, 24 October 2003 21:11 Go to previous messageGo to next message
Julie Waterhouse is currently offline Julie WaterhouseFriend
Messages: 42
Registered: July 2009
Member
For aspects to affect code from another project, you can
(1) refer directly to the aspect files in the other project from a .lst
file. For example, build your target project with a .lst file that
includes:
../aspect_project/src/pckg/myaspect.java

or (2)
symbolically link the source files from the aspect project into the
current project (and add all required dependencies)

Regards,

Julie
AJDT Team


Sean Kirby wrote:

> Hi all,

> I'm using ajdt 1.1.4 with two AspectJ projects. The second depends on the
> first for some classes. The first project also has aspects that i want to
> be applied to classes in the second project. I know that my pointcuts are
> working properly (because the two projects used to be one) but the aspects
> aren't being applied to the second project's classes. Am i missing
> something really basic here or is there no way of sharing aspects between
> projects short of jaring up the aspects and specifying the aspect jar as an
> input aspect jar to my second project?

> Please let me know if i've missed something really obvious in the docs or if
> this really is a limitation.

> Thanks

> Sean Kirby
Re: Sharing aspects between AspectJ projects [message #27155 is a reply to message #27038] Mon, 27 October 2003 01:04 Go to previous message
Eclipse UserFriend
Originally posted by: seank.nulogy.com

Thanks Julie.

I have to create a new .lst file to do this, don't I? Because the
default.lst is regenerated for every build, right? I suppose this approach
wouldn't automatically rebuild the dependent projects if the aspect was
modified would it? Would using symbolic links solve this issue?

Both of these solutions seem somewhat piece-meal. Is proper support for
using aspects going to be built into the ajdt?

Sean

"Julie Waterhouse" <juliew@ca.ibm.com> wrote in message
news:bnc4hv$fl1$1@eclipse.org...
> For aspects to affect code from another project, you can
> (1) refer directly to the aspect files in the other project from a .lst
> file. For example, build your target project with a .lst file that
> includes:
> ./aspect_project/src/pckg/myaspect.java
>
> or (2)
> symbolically link the source files from the aspect project into the
> current project (and add all required dependencies)
>
> Regards,
>
> Julie
> AJDT Team
>
>
> Sean Kirby wrote:
>
> > Hi all,
>
> > I'm using ajdt 1.1.4 with two AspectJ projects. The second depends on
the
> > first for some classes. The first project also has aspects that i want
to
> > be applied to classes in the second project. I know that my pointcuts
are
> > working properly (because the two projects used to be one) but the
aspects
> > aren't being applied to the second project's classes. Am i missing
> > something really basic here or is there no way of sharing aspects
between
> > projects short of jaring up the aspects and specifying the aspect jar as
an
> > input aspect jar to my second project?
>
> > Please let me know if i've missed something really obvious in the docs
or if
> > this really is a limitation.
>
> > Thanks
>
> > Sean Kirby
>
>
Re: Sharing aspects between AspectJ projects [message #572323 is a reply to message #26794] Fri, 24 October 2003 21:11 Go to previous message
Julie Waterhouse is currently offline Julie WaterhouseFriend
Messages: 42
Registered: July 2009
Member
For aspects to affect code from another project, you can
(1) refer directly to the aspect files in the other project from a .lst
file. For example, build your target project with a .lst file that
includes:
../aspect_project/src/pckg/myaspect.java

or (2)
symbolically link the source files from the aspect project into the
current project (and add all required dependencies)

Regards,

Julie
AJDT Team


Sean Kirby wrote:

> Hi all,

> I'm using ajdt 1.1.4 with two AspectJ projects. The second depends on the
> first for some classes. The first project also has aspects that i want to
> be applied to classes in the second project. I know that my pointcuts are
> working properly (because the two projects used to be one) but the aspects
> aren't being applied to the second project's classes. Am i missing
> something really basic here or is there no way of sharing aspects between
> projects short of jaring up the aspects and specifying the aspect jar as an
> input aspect jar to my second project?

> Please let me know if i've missed something really obvious in the docs or if
> this really is a limitation.

> Thanks

> Sean Kirby
Re: Sharing aspects between AspectJ projects [message #572416 is a reply to message #27038] Mon, 27 October 2003 01:04 Go to previous message
Sean Kirby is currently offline Sean KirbyFriend
Messages: 5
Registered: July 2009
Junior Member
Thanks Julie.

I have to create a new .lst file to do this, don't I? Because the
default.lst is regenerated for every build, right? I suppose this approach
wouldn't automatically rebuild the dependent projects if the aspect was
modified would it? Would using symbolic links solve this issue?

Both of these solutions seem somewhat piece-meal. Is proper support for
using aspects going to be built into the ajdt?

Sean

"Julie Waterhouse" <juliew@ca.ibm.com> wrote in message
news:bnc4hv$fl1$1@eclipse.org...
> For aspects to affect code from another project, you can
> (1) refer directly to the aspect files in the other project from a .lst
> file. For example, build your target project with a .lst file that
> includes:
> ./aspect_project/src/pckg/myaspect.java
>
> or (2)
> symbolically link the source files from the aspect project into the
> current project (and add all required dependencies)
>
> Regards,
>
> Julie
> AJDT Team
>
>
> Sean Kirby wrote:
>
> > Hi all,
>
> > I'm using ajdt 1.1.4 with two AspectJ projects. The second depends on
the
> > first for some classes. The first project also has aspects that i want
to
> > be applied to classes in the second project. I know that my pointcuts
are
> > working properly (because the two projects used to be one) but the
aspects
> > aren't being applied to the second project's classes. Am i missing
> > something really basic here or is there no way of sharing aspects
between
> > projects short of jaring up the aspects and specifying the aspect jar as
an
> > input aspect jar to my second project?
>
> > Please let me know if i've missed something really obvious in the docs
or if
> > this really is a limitation.
>
> > Thanks
>
> > Sean Kirby
>
>
Previous Topic:thisJoinPoint.getSignature() -> java.lang.IncompatibleClassChangeError
Next Topic:Can Auto-Build be added to the Work Task list?
Goto Forum:
  


Current Time: Thu Apr 25 11:28:51 GMT 2024

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

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

Back to the top