apt.1 revision 2362
0N/A." Copyright 2004-2006 Sun Microsystems, Inc. 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."
1178N/A.TH apt 1 "04 May 2009"
1178N/A." Generated from HTML by html2man (author: Eric Armstrong)
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
0N/AThe tool \f2apt\fP, annotation processing tool, includes a set of new 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
0N/Ahttp://java.sun.com/javase/6/docs/technotes/guides/apt/GettingStarted.html
0N/A.LP
1178N/A.RS 3
0N/A.TP 3
0N/ANote:
1178N/A\f2The functionality of \fP\f2apt\fP has been subsumed by the annotation\-processing infrastructure that is now part of the \f2javac(1)\fP tool and standardized for use by all Java compilers. This new infrastructure relies on the language model and annotation\-processing APIs that are now part of the Java Platform. It is recommended that new annotation processor development be based on the new APIs and the \f2javac\fP tool.
1178N/A.RE
1178N/A
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
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
0N/A.SH "NOTES"
0N/A.LP
0N/A.LP
0N/AThe functionality of \f2apt\fP has been subsumed by the standard annotation\-processing infrastructure now offered by \f2javac\fP. Support for \f2apt\fP and its associated APIs may be discontinued in some future JDK release.
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
1178N/A
1178N/A.LP
0N/A