[APT] Run Java 6 annotation processor in batch mode [message #931479] |
Wed, 03 October 2012 08:39 |
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 13:10 |
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02846 seconds