[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] AJDT question
|
Title: Message
Thanks, that does help. I tried the linked source folder approach, but
that results in huge build cycles
and
running out of memory a lot. The projects I depend on are big. I wanted to
bypass the compilation
and do
just the weaving step if possible. Guess I'll have to jar them up and use the
-injar option.
Thanks
again,
F.
Hi Frank,
Currently, you
can't directly weave into the class files of your non
AspectJ project. You have to package them into
a jar file and use that
as an input
jar for your AspectJ project. If you do package the class
files, you can pass them into your
AspectJ project by setting
InputJars appropriately on the AspectJ project properties page for
your
AspectJ project.
This is simply because at the moment
the compiler doesn't let us
specify
a directory as being the input location for .class files - they
have to be packaged up.
Perhaps a better approach is to use
linked source folders? (if its
feasible for you?) Using linked source folders, you define a
second
source folder in your
AspectJ project and specify that it is a *linked*
source folder (you will see the 'advanced' option as
you go through
defining the source
folder), define its actual location as being the
source folder for your non AspectJ project.
Now, when you build the
AspectJ project it will use your AspectJ project source *and* the
source from your non-AspectJ
project, producing a complete set of
woven class files in the output directory of your AspectJ
project.
Is that any
help?
Andy.
---
Andy
Clement.
AJDT Development
| "Frank Sauer"
<Frank.Sauer@xxxxxxxxxx> Sent by: aspectj-users-admin@xxxxxxxxxxx
05/11/2003 20:22 Please respond to aspectj-users
| To:
<aspectj-users@xxxxxxxxxxx> cc:
Subject: [aspectj-users] AJDT
question |
Can the AJDT
builder weave aspects into the class files exported
by another (non
AspectJ) project?
For example, project X has project Y on its build
path. X is an
AspectJ project, Y is not, but X uses classes exported by Y
and
needs to weave an aspect into them. Can I do that?
How?
Thanks,
Frank
_______________________________________________
aspectj-users
mailing
list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users