我最近在我的ant build.xml脚本中配置了groovy1.6(w/Java6),这样它就可以使用嵌入的javac命令通过groovy编译所有内容:
<target name="build-project" depends="init">
<groovyc destdir="antbin" classpathref="CIMS.classpath">
<src path="src"/>
<src path="test"/>
<classpath refid="CIMS.classpath"/>
<javac debug="true" debuglevel="${debuglevel}" source="1.6" target="1.6"/>
</groovyc>
</target>现在我正在尝试从AspectJ 1.6的加载时织入切换到编译时。一切都可以在Eclipse中运行,我的测试套件已经通过了(我也从@AspectJ切换到了成熟的aspectj)。为了使用iajc,我需要添加/替换什么?
发布于 2009-06-28 09:01:10
您是否尝试过使用iajc而不是groovyc target中嵌入的javac?
https://stackoverflow.com/questions/1029005
复制相似问题