Hi
I use the following:
Code:
<target name="compile-withaspects" depends="clean,init">
<iajc sourceroots="${project.src}"
destDir="${project.classes}"
fork="true"
debug="on"
verbose="true"
target="${java.target}"
source="${java.source}"
classpathref="javac.compiler.classpath">
</iajc>
<copy todir="${project.classes}">
<fileset dir="${project.src}"
includes="**/*.txt,**/*.xml,**/*.properties"/>
</copy>
</target>
The only problem I have is that I have a enforcement aspect that tracks the usage of System.out.println and printStackTrace(). When I try to compile I get an exception via Ant. I had a look around to exclude this aspect from the build process but no luck. The src dir contains all the aspects. I am using cruise control so when I compile via eclipse i can exclude from the build process. But CC takes the latest version and complains about the aspect.
I'm still looking on the web. If anyone has any ideas then please let me know otherwise if I solve the problem I'll post it.