Saturday, February 27, 2021

gwt-places annotation processor in Eclipse

Did anyone got Eclipse to invoke annotation processor from gwt-places module
that should generate PlaceHistoryMapper implementations?

I have interface that extends org.gwtproject.place.shared.PlaceHistoryMapper
and is annotated with org.gwtproject.place.shared.WithTokenizers. I'm
creating instances by instancing class with my class name suffixed with "Impl".

However, it seems Eclipse doesn't run annotation processor and consequently
can't find implementation class.

Gradle build works fine.

I even explicitly specified gwt-places-processor.jar in project settings in
Eclipse (Java Compiler -> Annotation Processing -> Factory Path), but folder
where generated files should be placed (.apt_generated) is still empty.

Any ideas?

Sidenote: it seems Eclipse has some issue with annotation processors
classpath, because I had to add auto-common.jar (PlaceHistoryMapperProcessor
is based on BasicAnnotationProcessor from auto-common) on Factory Path, too.

-gkresic.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/0ff5fa68-0de1-f84e-8298-5c6a16c19b64%40steatoda.com.

No comments:

Post a Comment