Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [APT] Run Java 6 annotation processor in batch mode
[APT] Run Java 6 annotation processor in batch mode [message #931479] Wed, 03 October 2012 04:39 Go to next message
Eclipse User
Hi,

I'm using a Java 6 annotation processor that generates for me a Tag
Library Descriptor to use in JSPs based on annotation in my tag
handlers. Unfortunately, if I modify only the TagA class, the annotation
processor only sees the modifications in TagA and completely ignores the
other tags in non-modified source files.

I assumed it was normal and due to the incremental compiler, and went on
to check the "Run processor in batch mode" option, but that didn't
change anything. I later read that this option only had effect on Java 5
annotation processors, not Java 6.

Is there a reason why it has no effect on annotation processors in Java
6? How can I have such a batch mode work with a Java 6 processor without
having to clean the whole project each time?

Thanks,
J.-P.
Re: [APT] Run Java 6 annotation processor in batch mode [message #931724 is a reply to message #931479] Wed, 03 October 2012 09:10 Go to previous message
Eclipse User
As complementary information: the original Element objects used for
generation of the auxiliary file are indeed passed to the filer's
createResource method. Does it mean that Eclipse ignores this dependency
information?

J.-P.

On 03.10.12 10:39, Jean-Philippe Pellet wrote:
> Hi,
>
> I'm using a Java 6 annotation processor that generates for me a Tag
> Library Descriptor to use in JSPs based on annotation in my tag
> handlers. Unfortunately, if I modify only the TagA class, the annotation
> processor only sees the modifications in TagA and completely ignores the
> other tags in non-modified source files.
>
> I assumed it was normal and due to the incremental compiler, and went on
> to check the "Run processor in batch mode" option, but that didn't
> change anything. I later read that this option only had effect on Java 5
> annotation processors, not Java 6.
>
> Is there a reason why it has no effect on annotation processors in Java
> 6? How can I have such a batch mode work with a Java 6 processor without
> having to clean the whole project each time?
>
> Thanks,
> J.-P.
Previous Topic:Problem with Dynamic Web Project
Next Topic:Java with mysql/oracle
Goto Forum:
  


Current Time: Sat Jul 26 15:19:44 EDT 2014

Powered by FUDForum. Page generated in 0.02099 seconds