Hi
I am trying to use the abc compiler instead of the AspectJ
compiler. My project is being built using Ant. I have not
been able to find sufficient documentation on this topic in
abc website and mailing lists.
I understand that I have to use the abc-for-ajc-ant.jar file
for this. I want some clarifications regarding getting
this to work.
In the build.xml file for Ant, AspectJ requires the taskdef task
with the resource attribute pointing to the Java property file
"org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties".
This file included in the aspectjtools.jar file.
1) Do I have to change the resource attribute to be something else
for abc?
2) Am I right in replacing the aspectjtools.jar file with the
abc-for-ajc-ant.jar file?
3) Finally in the iajc task, does the classpath attribute need to
point to the location of the abc-runtime.jar file OR the
abc-complete.jar file?
I have attached sample code from my build.xml file.
---------------------------------------------------------------------
<taskdef
resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement location = "${poa.libdir}/lib/abc-for-ajc-ant.jar"/>
</classpath>
</taskdef>
<target name="compile">
<echo message="Compiling Java and AspectJ files"/>
<mkdir dir="${poa.bindir}"/>
<ajc destdir="${poa.bindir}"
fork="true"
debug="on"
verbose="true"
srcdir="${poa.srcdir}">
<patternset refid="sources"/>
<classpath>
<pathelement location="${poa.libdir}/lib/abc-runtime.jar"/>
<pathelement location="${poa.libdir}/lib/abc-complete.jar"/>
</classpath>
</ajc>
</target>
---------------------------------------------------------------------
This is the error I am getting when I run Ant.
$ant -buildfile abcbuild.xml
Buildfile: abcbuild.xml
[echo] Locating ABC Compiler
BUILD FAILED
/.a/nfast/users/vchakra/workspace/POA_Aspects/abcbuild.xml:5:
taskdef class abc.main.AntTask cannot be found
---------------------------------------------------------------------
I will be grateful for help in this matter.
Regards,
Venkat
Received on Tue Sep 20 06:11:38 2005
This archive was generated by hypermail 2.1.8 : Tue Sep 20 2005 - 11:50:06 BST