Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AJDT question

First, just to be clear: putting a project on the build path for
an AspectJ project only adds the project classes to the classpath;
it does not result in those classes being affected by aspects
in the AspectJj project.

Rightnow the only way to weave classes is using the -injars option.
The exporting projects would have to build a jar as a side-effect,
so the AspectJ project could weave it using -injars set up in the
"other compiler args" GUI field.

Probably the better approach for now would be to link the required
project's source directories directly into the AspectJ project,
and build incrementally.  This would unfortunately mean
duplicating their compilation, but should give you the full support
for crosscutting views, etc. (subject to some outstanding bugs
with linked source folders?).

Wes


Frank Sauer wrote:

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




Back to the top