aspectj ant import not found

T

tmaus

hi there .. have a small problem with ant - aspectj generation..
aspectj is telling me that it is not able to import libraries..

my aspect looks like:

import org.aspectj.lang.*;
import foo.bar.Home;

public aspect LoggerAspect {
...
...

my class looks like:

package foo.bar;

public class Home {
...
...


the foo.bar package is available as source as well as a compiled directory.

my build.xml snipplet looks like:
<path id="build.dir.classes">
<pathelement location="${build.cls.dir}"/>
</path>

<iajc destdir="${build.aspect.dir}"
verbose="on"
aspectpath="${build.jar.dir}/aspects.jar"
sourceroots="${src.dir}/java"
incremental="true">

<classpath>
<path refid="project.class.path"/>
<path refid="build.dir.classes"/>
</classpath>
</iajc>
...
...
the build.cls.dir contains my precompiled sources .. ( the foo.bar package )
the build.jar.dir contains my prcompiled aspects
the build.aspect.dir will contain the weaved binaries
project.class.path contains all project related libraries ..

the aspectj compiler is telling me constantly that it cannot find the import
foo.bar

any idea ???
help would be appreciated ..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top