How to weave aspects using AspectjCompile task #493
Unanswered
libertywork-agb
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You are basically doing, what the
That is correct. The |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the
io.freefair.aspectj.base
plugin version 6.3.0. Referencing the documentation, it can be used in this way:I created an
aspectj
configuration (it did not exist from applying the plugin), declared a dependency to the subproject containing my aspects using that configuration, defined my custom ajc task, and finalizedcompileJava
by my ajc task.This setup results in the following exception when running
compileJava
:aspectjClasspath
does not have much in the way of documentation, so I don't really understand its importance, but it seems like I have it set correctly based on the examplemyAjcTask
from the documentation. My problem is that I don't know exactly what to put forinpath
andaspectpath
.From my understanding,
inpath
should be the files into which aspects are woven andaspectpath
should be the files containing the aspects to weave. I want the compiled Java to be woven withmy-aspect-lib
aspects.If I just don't set
inpath
or if I set it to an empty file collection (files()
) then running the build succeeds but of course it doesn't weave any aspects.I also tried upgrading to version 6.4.1 of the plugin and got the exact same results.
Why am I getting this exception and how should
inpath
andaspectpath
be configured?Beta Was this translation helpful? Give feedback.
All reactions