LTW compilation with ant task [message #685908] |
Mon, 20 June 2011 16:50 |
moha Messages: 43 Registered: March 2011 |
Member |
|
|
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 .
|
|
|
Powered by
FUDForum. Page generated in 0.04123 seconds