Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] LTW with ant task

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 .

Back to the top