Skip to main content


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 08:39 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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: Wed Apr 24 15:45:46 GMT 2024

Powered by FUDForum. Page generated in 0.02846 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top