[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] problem with iajc
|
Hi,
I've got a problem with ant and iajc within Eclipse (3.3, Ant 1.7, Aspectj
1.5). My ant file has the following definition:
<project basedir="." default="init" name="HRPM"
xmlns:aspectj="antlib:org.aspectj">
...
<target name="_AspectJCompile" depends="init" description="Compiles the
project using AspectJ compiler." >
<aspectj:iajc srcDir="${src.dir}" destDir="${build.dir}"
classpath="/sviluppo/java//jars/aspectjrt.jar" source="1.5" />
</target>
....
</project>
When I run the task, I get:
BUILD FAILED
/opt/sviluppo/java/eclipseWorkspace/HRPM/build.xml:159: Problem: failed to
create task or type antlib:org.aspectj:iajc
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/opt/sviluppo/java/eclipse3.3/plugins/org.apache.ant_1.7.0.v200706080842/lib
-/home/luca/.ant/lib
-a directory added on the command line with the -lib argument
Now, I've checked and the aspectjtools.jar is in the
plugins/org.apache.ant_1.7.0.v200706080842/lib directory, thus I don't know
what the problem is. I didn't find any solution thru google.
Any idea?
Thanks,
Luca