Ant target for compile-time code instrumentation with Spring aspects
Posted
by alecswan
on Stack Overflow
See other posts from Stack Overflow
or by alecswan
Published on 2010-03-29T15:35:35Z
Indexed on
2010/03/30
20:33 UTC
Read the original article
Hit count: 425
I have developed a web application using Netbeans 6.7 and Ant. The webapp works, but I would like to refactor the code to use @Configurable Spring annotation for cleaner dependency injection.
I was able to get load-time weaving (LTW) of Spring aspects to work intermittently (see http://forum.springsource.org/showthread.php?t=86904).
At this point I would like to use compile-time weaving with my tool set.
Could anybody provide an Ant target that I can use to weave Spring aspects at compile time?
An extra credit will be given to anybody who explains how to configure Netbeans to execute the new Ant target right after code compilation.
Thanks.
© Stack Overflow or respective owner