Hi, no it’s not intentional. I introduced the ‘build/weaved-classes’ dir because using the same dir as inpath and destdir was not working. How can I do to package only weaved classes? Or eliminate the need of the additional ‘build/weaved-classes’ dir?
One thing I’ve noticed on a first glance is that your weave task uses iajc at configuration time. This should be done during the execution phase. You should change your weave task to:
You could have a look at the aspectj plugin I’ve wrote a while ago for handling aspects issues. It replaces the normal compileJava plugin with one that uses the iajc compiler. You can find more details and examples at http://wiki.gradle.org/display/GRADLE/Plugins#Plugins-AspectJplugin