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


Current Time: Thu Dec 14 02:12:35 GMT 2017

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

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