4176N/A." Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A."
0N/A." This code is free software; you can redistribute it and/or modify it
0N/A." under the terms of the GNU General Public License version 2 only, as
0N/A." published by the Free Software Foundation.
0N/A."
0N/A." This code is distributed in the hope that it will be useful, but WITHOUT
0N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A." version 2 for more details (a copy is included in the LICENSE file that
0N/A." accompanied this code).
0N/A."
0N/A." You should have received a copy of the GNU General Public License version
0N/A." 2 along with this work; if not, write to the Free Software Foundation,
0N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A."
2362N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A." or visit www.oracle.com if you need additional information or have any
2362N/A." questions.
1178N/A."
4880N/A.TH apt 1 "16 Mar 2012"
0N/A
0N/A.LP
0N/A.SH "NAME"
0N/A.LP
0N/A.LP
0N/A\f2apt\fP \- annotation processing tool
0N/A.LP
0N/A.SH "SYNOPSIS"
0N/A.LP
0N/A.LP
0N/A\f2apt [\-classpath \fP\f2classpath\fP] [\-sourcepath \f2sourcepath\fP] [\-d \f2directory\fP] [\-s \f2directory\fP] [\-factorypath \f2path\fP] [\-factory \f2class\fP] [\-print] [\-nocompile] [\-A\f2key\fP[\f2=val\fP] ...] [\f2javac option\fP] sourcefiles [@files]
0N/A.LP
0N/A.SH "PARAMETERS"
0N/A.LP
0N/A.LP
0N/AOptions may be in any order. For a discussion of parameters which apply to a specific option, see OPTIONS below.
0N/A.LP
1178N/A.RS 3
0N/A.TP 3
0N/Asourcefiles
0N/AZero or more source files to be processed.
0N/A.TP 3
0N/A@files
0N/AOne or more files that list source files or other options
1178N/A.RE
1178N/A
0N/A.LP
0N/A.SH "DESCRIPTION"
0N/A.LP
0N/A.LP
4176N/A\f3Note\fP: The \f2apt\fP tool and its associated API contained in the package \f2com.sun.mirror\fP have been deprecated since JDK 7 and are planned to be removed in the next major JDK release. Use the options available in the \f2javac(1)\fP tool and the APIs contained in the packages \f2javax.annotation.processing\fP and \f2javax.lang.model\fP to process annotations.
4176N/A.LP
4176N/A.LP
4176N/AThe tool \f2apt\fP, annotation processing tool, includes reflective APIs and supporting infrastructure to process program annotations. The \f2apt\fP reflective APIs provide a build\-time, source\-based, read\-only view of program structure. These reflective APIs are designed to cleanly model the Java(TM) programming language's type system after the addition of generics. First, \f2apt\fP runs annotation processors that can produce new source code and other files. Next, \f2apt\fP 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 \f2com.sun.mirror\fP.
0N/A.LP
0N/A.LP
0N/AA fuller discussion of how the tool operates as well as instructions for developing with \f2apt\fP are in
0N/A.na
0N/A\f4Getting Started with \fP\f4apt\fP. @
0N/A.fi
4880N/Ahttp://docs.oracle.com/javase/7/docs/technotes/guides/apt/GettingStarted.html
0N/A.LP
0N/A.SH "OPTIONS"
0N/A.LP
0N/A.SS
0N/Aapt specific options
0N/A.LP
1178N/A.RS 3
0N/A.TP 3
0N/A\-s dir
0N/ASpecify the directory root under which processor\-generated source files will be placed; files are placed in subdirectories based on package namespace.
0N/A.TP 3
0N/A\-nocompile
0N/ADo not compile source files to class files.
0N/A.TP 3
0N/A\-print
0N/APrint out textual representation of specified types; perform no annotation processing or compilation.
0N/A.TP 3
0N/A\-A[key[=val]]
0N/AOptions to pass to annotation processors \-\- these are not interpreted by \f2apt\fP directly, but are made available for use by individual processors
0N/A.TP 3
0N/A\-factorypath path
0N/ASpecify where to find annotation processor factories; if this option is used, the classpath is \f2not\fP searched for factories.
0N/A.TP 3
0N/A\-factory classname
0N/AName of annotation processor factory to use; bypasses default discovery process
4176N/A.TP 3
4176N/A\-version
4176N/APrint version information.
4176N/A.TP 3
4176N/A\-X
4176N/ADisplay information about non\-standard options.
1178N/A.RE
1178N/A
0N/A.LP
0N/A.SS
0N/AOptions shared with javac
0N/A.LP
1178N/A.RS 3
0N/A.TP 3
0N/A\-d dir
0N/ASpecify where to place processor and javac generated class files
0N/A.TP 3
1178N/A\-cp path or \-classpath path
0N/ASpecify where to find user class files and annotation processor factories. If \f2\-factorypath\fP is given, the classpath is not searched for factories.
1178N/A.RE
1178N/A
0N/A.LP
0N/A.LP
0N/AConsult the javac(1) man page for information on \f2javac\fP options.
0N/A.LP
4176N/A.SS
4176N/ANon\-Standard Options
4176N/A.LP
4176N/A.RS 3
4176N/A.TP 3
4176N/A\-XListAnnotationTypes
4176N/AList found annotation types.
4176N/A.TP 3
4176N/A\-XListDeclarations
4176N/AList specified and included declarations.
4176N/A.TP 3
4176N/A\-XPrintAptRounds
4176N/APrint information about initial and recursive \f2apt\fP rounds.
4176N/A.TP 3
4176N/A\-XPrintFactoryInfo
4176N/APrint information about which annotations a factory is asked to process.
4176N/A.TP 3
4176N/A\-XclassesAsDecls
4176N/ATreat both class and source files as declarations to process.
4176N/A.RE
4176N/A
4176N/A.LP
4176N/A.LP
4176N/A\f3Note\fP: Because these options are non\-standard, they are subject to change without notice.
4176N/A.LP
0N/A.SH "NOTES"
0N/A.LP
0N/A.LP
4176N/AThe \f2apt\fP tool and its associated API contained in the package \f2com.sun.mirror\fP have been deprecated since JDK 7 and are planned to be removed in the next major JDK release. Use the options available in the \f2javac(1)\fP tool and the APIs contained in the packages \f2javax.annotation.processing\fP and \f2javax.lang.model\fP to process annotations.
0N/A.LP
0N/A.SH "SEE ALSO"
0N/A.LP
0N/A.RS 3
0N/A.TP 2
1178N/Ao
1178N/Ajavac(1), java(1)
0N/A.RE
0N/A
0N/A.LP
0N/A