Name
apt
Synopsis
apt [options
] [files
...] [@file
...]
Annotation processing tool. The apt command uses reflective APIs from
com.sun.mirror
to annotate
source code in order to provide a view of a program’s structure.
The APIs model the Java language’s type structure, including
generics.
Operands
-
files
Zero or more Java source files.
-
@
file
One or more files listing the names of Java source files, or other options.
Options
-A
[
key
[=
val
]]Options passed on to specific annotation processes, not interpreted directly by apt itself.
-cp
path
,-classpath
path
Look in path for class files and annotation processor factories. With
-factorypath
, the classpath is not searched for factories.-
-d
dir
Place processor and compiled class files in dir.
-
-factory
classname
Use classname as the annotation process factory. This bypasses apt’s default discovery process.
-
-factorypath
path
Find annotation processor factories in path. This option disables searching the classpath for factories.
-
-nocompile
Disable compilation of source files into class files.
-
-print
Print a textual version of the types; do not do any annotation processing or compilation.
-
-s
dir
Use dir as the root directory in which to place generated source files. Files are placed in subdirectories based on the package namespace.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.