[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Problems using iajc with Ant
|
Hi,
I am trying to use the iajc compiler to build aspects, and I keep getting the error:
[iajc] C:\Derby\aspderby\java\build\org\apache\derbyBuild\classlister.java:23 [error] The import org.apache.derby cannot be resolved
[iajc] import org.apache.derby.iapi.services.classfile.*;
[iajc] ^^^^^^^^^^^^^^^
I am not getting this error with javac, I am attaching the build.xml file.
I saw a posting on the eclipse list at: http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg02560.html where the same problem has been addressed:
"The imports that iajc was complaining about were not listed as inputs in my
build.xml file. After adding them, iajc compiled them fine. What's peculiar is
that the 'javac' task didn't complain about the missing input files. Perhaps
the 'javac' task searches for referenced, but missing, classes? I don't know,
just speculating."
I tried adding the above folder in my class path, but I still keep getting the same error. Can someone please tell me how to get around this issue?
Thanks.
Sincerely,
Irum Godil.
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web <?xml version="1.0"?>
<project default="build" basedir="../../../../../..">
<!-- Set Properties -->
<!-- User settings -->
<property file="${user.home}/ant.properties"/>
<!-- Set property lib dir -->
<property name="properties.dir" value="tools/ant/properties"/>
<!-- Significant dirs -->
<property file="${properties.dir}/dirs.properties"/>
<!-- Compiler settings -->
<property file="${properties.dir}/defaultcompiler.properties"/>
<property file="${properties.dir}/${build.compiler}.properties"/>
<!-- Compile-time classpath properties files -->
<property file="${properties.dir}/extrapath.properties"/>
<property file="${properties.dir}/compilepath.properties"/>
<!-- Targets -->
<target name="build" depends="compile"/>
<target name="compile">
<echo message = "IRUMMMM"/>
<echo message = "${derby.build.src.dir}"/>
<taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement location="c:\\aspectj1.2\\lib\\aspectjtools.jar"/>
</classpath>
</taskdef>
<taskdef name="iajc" classname="org.aspectj.tools.ant.taskdefs.AjcTask">
<classpath>
<pathelement location="c:\\aspectj1.2\\lib\\aspectjtools.jar"/>
<pathelement path="c:\\aspectj1.2\\lib\\aspectjrt.jar"/>
</classpath>
</taskdef>
<iajc bootclasspath="${empty}"
nowarn="on"
deprecation="${deprecation}"
verbose="${verbose}"
destdir="${out.dir}">
<classpath>
<pathelement path="c:\\aspectj1.2\\lib\\aspectjrt.jar; ${compile.classpath};${java.home}/../lib/tools.jar;"/>
<pathelement path = "${derby.engine.dir}\\iapi\\services\\classfile\\*"/>
<pathelement path = "${derby.tools.dir}\\tools\\*"/>
</classpath>
<sourceroots>
<pathelement location="C:\\Derby\\aspderby\\aspects"/>
<pathelement location="${derby.build.src.dir}"/>
</sourceroots>
</iajc>
</target>
</project>