Batch mode works as you said. Is there any workaround to make it work in Eclipse? We were planning to provide the plug-in to our customers and the experience won't be good if we ask them to compile from the command line.
I will raise a bug for this. Thanks, -Asad --- On Fri, 10/28/11, Andrew Eisenberg <[email protected]> wrote: > From: Andrew Eisenberg <[email protected]> > Subject: Re: [aspectj-users] problems with generated code > To: [email protected] > Date: Friday, October 28, 2011, 12:32 PM > AJDT does not fully support Java 5 > annotation processors, and does not > support Java 6 style processors at all. > > What is supported is the following: > > 1. generating new files > 2. adding compile errors or warnings to existing files > > However, we do not run the AspectJ compiler in a loop to > handle new > files generated from APT. This is required for your > situation. I > believe that running the aspectj compiler in batch mode > (ie- from the > command line) will properly handle this situation. > > The reason why this has not been implemented is that we > have not had > this requirement in the past. Could you raise a bug > for this inside > of bugzilla? > > https://bugs.eclipse.org/bugs/ > > On Thu, Oct 27, 2011 at 12:53 PM, Asad Jawahar <[email protected]> > wrote: > > I am using AspectJ in a project that also has my > custom Java 5 style annotation peocessor. The annotation > processor generates some code that has no AspectJ dependency > at all. The problem appears to be that the AJDT builder is > ignoring the generated files and they and they don't get > compiled. I get Java compilation errors when I try to use > the generated types anywhere in the > > project. If I disable AspectJ (AspectJ tools > > Remove AspectJ Capability), the code compiles fine. At this > point if I convert the project back to AspectJ and do a > clean, the errors come back. Is this a supported scenario? > If so, is there something additional I need to do in my > annotation processor to make the builder aware of the > generated files? > > > > Thanks, > > -Asad > > > > _______________________________________________ > > aspectj-users mailing list > > [email protected] > > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
