Hi,

I generate an aspect (with annotation) in a java project and i compile it
with ant using the following code :

<taskdef
resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement location="lib/aspectjtools.jar"/>
</classpath>
</taskdef>
<target name="compile">
<mkdir dir="${buildfolder}"/>
<property name="ajc"
value="org.aspectj.tools.ant.taskdefs.Ajc11CompilerAdapter"/>

<javac srcdir="src" destdir="${build}" classpathref="lib.classpath">
<compilerarg compiler="${ajc}" />
</javac>
</target>


the lib.classpath ~ the folder lib
and in the folder "lib" i put aspectjtools.jar ,aspectjrt.jar and
aspectjweaver.jar

when i launch the target i get myAspect.class but when i copy it in other
plugin( in tyhis plugin i define the Eclipse-SupplementBundle header and the
aop.xml file ) i don't get the weaving in runtime.

any idea ?

thanks in advance .
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to