Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ajdt-dev] EnsureAJBuilder.ensureNoJavaBuilder(..) and APT

That is an interesting idea to enable use of JDT-APT in AspectJ
projects.  I've prototyped the AspectJ compiler supporting APT in the
past, but it is a bit complicated so I never finished it to the point
where I wanted to ship it.  I guess if the project is suitably
configured, the java builder could be run in this way and then AspectJ
used to build any resultant output.

I suppose it has limitations - a Java file can't refer to an aspect,
since the java builder wouldn't be able to resolve the reference to an
aj file.  It is probably worth raising an enhancement request to track
doing this - perhaps mentioning a bit more about the configuration and
any limitations you see with the approach, so we can decide what to
do.

cheers,
Andy

2009/5/29 Dawid Pytel <pytel.dawid@xxxxxxxxx>:
> Hi,
>
> I develope project that heavily relies on AspectJ and APT. To get it
> working I use a workaround. I have both JavaBuilder and AJBuilder in my
> project's .project file.
> (http://www.eclipse.org/newsportal/article.php?id=1966&group=eclipse.technology.ajdt#1966).
>
> Just recently I noticed that my JUnit tests don't regenerate files using
> APT mechanism. After debugging I found reason - from time to time
> EnsureAJBuilder.ensureNoJavaBuilder(..) gets called and removes
> JavaBuilder from project.
>
> I wonder if there is a reason to remove JavaBuilder from .project. I
> imagine that the problem could be with generated .class files. Maybe in
> this case it's worth ignoring java build command entry that has argument
> org.eclipse.jdt.core.compiler.generateClassFiles set to disabled. This
> would solve the problem because JDT-APT would call annotation processors
> but no binaries would be generated.
>
> I use AJDT Version: 2.0.0.e34x-20090528-1600
> AspectJ version: 1.6.5.20090528125400
>
> Best regards
> David
>
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>


Back to the top