使用Spring方面的编译时代码检测的Ant目标

我使用Netbeans 6.7和Ant开发了一个Web应用程序。 webapp有效,但我想重构代码以使用@Configurable Spring注释来实现更清晰的依赖注入。 我能够让Spring方面的加载时间编织(LTW)间歇性地工作(参见http://forum.springsource.org/showthread.php?t=86904)。 此时我想使用我的工具集进行编译时编织。 任何人都可以提供一个Ant目标,我可以用它在编译时编织Spring方面吗? 任何解释如何配置Netbeans以在代码编译后立即执行新Ant目标的人都将获得额外的功劳。 谢谢。     
已邀请:
<iajc outjar="demo.jar">
    <sourceroots>
        <pathelement location=”src” />
        <pathelement location=".." />
    </sourceroots>
    <aspectpath>
        <pathelement location="org.springframework.aspects-3.0.0.RC1.jar" />
    </aspectpath>
</iajc>
有关完整示例,请参阅AspectJ开发指南iajc示例。     

要回复问题请先登录注册