Let’s say I have few aspects, which I have already compiled, and now I just want to compile single source file, but without recompiling the aspects, since it takes a lot of time.
Is there any way to do so?
For example, I have the following:
- Trace.aj
- Log.aj
- Test.java
All of them were compiled during my “build-all”, and now I’ve changed Test.java and wants to recompile it using the (already compiled) aspects.
Use load-time weaving.
http://www.aspectprogrammer.org/blogs/adrian/2004/05/loadtime_weavin.html
Here’s how to do it in eclipse:
http://www.eclipse.org/aspectj/doc/released/devguide/ltw-configuration.html#enabling-load-time-weaving