Eclipse Compiler with APT

What is the correct way to call the Eclipse compiler with an APT processor with Java?

I use the following Maven dependency for the compiler

<dependency>
  <groupId>org.eclipse.jdt.core.compiler</groupId>
  <artifactId>ecj</artifactId>
  <version>3.5.1</version>
</dependency>

I want to test the APT processor using the Eclipse compiler in addition to Javac.

+3
source share
2 answers

I did this with a custom builder. Right click project -> properties -> assemblers - set a new one that uses apt

0
source

AndroidAnnotations is an environment that generates Java code based on annotations using APT.

In this structure, Maven is the default build environment and has documentation on how to integrate AndroidAnnotations into a maven-based project.

, , , .

: * : http://androidannotations.org/ * github: https://github.com/excilys/androidannotations

0

Source: https://habr.com/ru/post/1745641/


All Articles