Annotation Processor Options
You can pass options to an annotation processor with the -A
compiler option. For example to disable generating the @Generated
annotation from being placed on the generated source files you would pass -Aorg.jboss.logging.tools.addGeneratedAnnotation=false
to the compiler command.
General
Option | Description |
---|---|
|
This option turns on debug logging for the processor |
|
This option allows you to define a path where, at compile-time, expressions in messages can be resolved. |
|
If set to |
In Java 9 the @javax.annotation.Generated was moved to @javax.annotation.processor.Generated . The processor attempts to determine which annotation to use by attempting to find the @javax.annotation.Generated first. If it fails the @javax.annotation.processor.Generated is attempted. If neither can be found no annotation will be placed on the generated implementations.
|
Expressions are in the form of ${key:defaultValue} . If the key is prefixed with sys. a system property is
used. If the key is prefixed with env. an environment variable is used. In all other cases the properties are resolved
from the org.jboss.logging.tools.expressionProperties path. If the key is not found in the properties the default
value will be used.
|
Expressions are processed at compile time. The values will be hard-coded in the generated source files. |
Translation Options
Option | Description |
---|---|
|
The base path for the translated properties files. This defaults to the location where new class files are placed. |
|
If set to |
|
If defined this indicates the path a skeleton file should be generated for the interface. The generated skeleton file will be placed in a directory that matches the package with a name that matches the interface with a |
|
Sets the maximum level to include in the generated skeleton files. For example if set to |
Report Options
Option | Description |
---|---|
|
Indicates the type of report that should be generated. The current report types are |
|
The path where the generated reports should be placed. This defaults to the location where new class files are placed. |
|
An optional title for the report. For asciidoc this defaults to |