Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » LTW compilation with ant task
LTW compilation with ant task [message #685908] Mon, 20 June 2011 16:50
moha  is currently offline moha Friend
Messages: 43
Registered: March 2011

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/">
<pathelement location="lib/aspectjtools.jar"/>
<target name="compile">
<mkdir dir="${buildfolder}"/>
<property name="ajc"

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

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 .
Previous Topic:Per VM singleton aspect
Next Topic:Getting source code positions for advice
Goto Forum:

Current Time: Wed Feb 19 06:19:21 GMT 2020

Powered by FUDForum. Page generated in 0.04521 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top