Hi
all,
I try to apply an aspect to one of the classes from a .jar file. For
this, I use compile time weaving with ant. The class get woven, but,
the META-INF folder with its content and the rest of properties and XML
files from the source .jar are not copied over to the destination jar.
Based on the iajc documentation all non .class files from the input
jars are copied over to the destination jar (
http://eclipse.org/aspectj/doc/released/devguide/antTasks-iajc.html)
Can anybody tell me what I'm doing wrong and how to get the non .class
files from the input jar to the output jar? It is very important to
have all the properties, XML files and META-INF content copied over to
the output jar.
Here is my ant task:
<iajc outjar=
"war/WEB-INF/lib/@{jarname}.jar"
sourceRootCopyFilter="**
/CVS/*,**/*.java"
inpathDirCopyFilter="**
/CVS/*,**/*.java,**/*.class"
incremental="false"
source="1.5"
target="1.5"
showWeaveInfo="true"
copyInjars="true"
>
<inpath>
<pathelement location="${srcdir}/${jarname}.jar" />
</inpath>
<aspectpath>
<pathelement location="${classes.dir}" />
</aspectpath>
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement location="war/WEB-INF/lib/${ivy.artifact.id}.jar"/>
</classpath>
</iajc>
Thanks in advance,
Levi