Unix for Beginners
Unix Shell Programming
Unix Useful References
Unix Useful Resources
Copyright © 2014 by tutorialspoint
apt - Unix, Linux Command
apt - annotation processing tool
apt [-classpath classpath] [-sourcepath sourcepath] [-d directory] [-s directory] [-factorypath path] [-factory class] [-print] [-nocompile] [-Akey[=val]...] [javacoption] sourcefiles [@files]
The tool apt, annotation processing tool, includes a set of
new reflective APIs and supporting infrastructure to
process program annotations. The apt reflective APIs
provide a build-time, source-based, read-only view of
program structure. These reflective APIs are designed
to cleanly model the JavaTM programming languages
type system after the addition of generics. First,
apt runs annotation processors that can produce new source
code and other files. Next, apt can cause compilation of
both original and generated source files, easing
development. The reflective APIs and other APIs used
to interact with the tool are subpackages of com.sun.mirror.
A fuller discussion of how the tool operates as well as
instructions for developing with apt are in Getting
Started with apt at
Options may be in any order. For a discussion of parameters
which apply to a specific option, see OPTIONS below.
Zero or more source files to be processed.
One or more files that list source files or other options.
apt specific options
-s dir ||
Specify the directory root under which processor-generated
source files will be placed; files are placed
in subdirectories based on package namespace.
Do not compile sources files to class files.
Print out textual representation of specified types;
perform no annotation processing or compilation.
Options to pass to annotation processors -- these are
not interpreted by apt directly, but are made
available for use by individual processors
-factorypath path ||
Specify where to find annotation processor factories; if
this option is used, the classpath is not searched
-factory classname ||
Name of annotation processor factory to use;
bypasses default discovery process
Options shared with javac
Consult the javac(1) man page for information on javac options.
-d dir ||
Specify where to place processor and javac generated class files
-cp path or-classpath path ||
Specify where to find user class files and annotation processor
factories. If -factorypath is given, the
classpath is not searched for factories.
The apt tool and its associated APIs may be changed or
superseded in future j2se releases.