I have a library(say lib1) which comprises of a couple of aspect classes(say aspect1.java and aspect2.java). I want to weave only aspect1.java in my service code. Is this possible using ant iajc target in compile time weaving ? I know this is possible in load time weaving by specifying which aspects to weave in aop.xml.
We have aspectpath in iajc as well, but I am not sure how to configure it to accept individual class files rather than a complete jar file.
<target name="weave-with-ajc">
<ht-aj:standard-aj-weave>
<inpath>
<path path="${classes.dir}" />
</inpath>
<aspectpath>
<path path="${standard.compile.classpath}" />
<path path="${bp:[Library]pkg.classpath}" />
</aspectpath>
</ht-aj:standard-aj-weave>
</target>
I want to weave only a particular aspect and not all the aspects in the library. Please suggest.