Sharing aspects between AspectJ projects [message #26794] |
Wed, 22 October 2003 16:59 |
Eclipse User |
|
|
|
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 #27155 is a reply to message #27038] |
Mon, 27 October 2003 01:04 |
Eclipse User |
|
|
|
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
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03815 seconds