blob: b25e8a30d079084d86db66eb21ba461b9ed746cc [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001.'" t
2." Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
3." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4."
5." This code is free software; you can redistribute it and/or modify it
6." under the terms of the GNU General Public License version 2 only, as
7." published by the Free Software Foundation.
8."
9." This code is distributed in the hope that it will be useful, but WITHOUT
10." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12." version 2 for more details (a copy is included in the LICENSE file that
13." accompanied this code).
14."
15." You should have received a copy of the GNU General Public License version
16." 2 along with this work; if not, write to the Free Software Foundation,
17." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18."
19." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
20." CA 95054 USA or visit www.sun.com if you need additional information or
21." have any questions.
22." `
23.TH apt 1 "05 Aug 2006"
24." Generated by html2roff
25
26.LP
27.SH "NAME"
28.LP
29.LP
30\f2apt\fP \- annotation processing tool
31.LP
32.SH "SYNOPSIS"
33.LP
34.LP
35\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]
36.LP
37.SH "PARAMETERS"
38.LP
39.LP
40Options may be in any order. For a discussion of parameters which apply to a specific option, see OPTIONS below.
41.LP
42.TP 3
43sourcefiles
44Zero or more source files to be processed.
45.TP 3
46@files
47One or more files that list source files or other options
48.LP
49.SH "DESCRIPTION"
50.LP
51.LP
52The 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.
53.LP
54.LP
55A fuller discussion of how the tool operates as well as instructions for developing with \f2apt\fP are in
56.na
57\f4Getting Started with \fP\f4apt\fP. @
58.fi
59http://java.sun.com/javase/6/docs/technotes/guides/apt/GettingStarted.html
60.LP
61.TP 3
62Note:
63\f2The functionality of \fP\f2apt\fP has been subsumed by the annotation\-processing infrastructure that is now part of the \f2javac\fP tool [
64.na
65\f2Solaris and Linux\fP @
66.fi
67http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html] [Windows] 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.
68.LP
69.SH "OPTIONS"
70.LP
71.SS
72apt specific options
73.LP
74.TP 3
75\-s dir
76Specify the directory root under which processor\-generated source files will be placed; files are placed in subdirectories based on package namespace.
77.TP 3
78\-nocompile
79Do not compile source files to class files.
80.TP 3
81\-print
82Print out textual representation of specified types; perform no annotation processing or compilation.
83.TP 3
84\-A[key[=val]]
85Options to pass to annotation processors \-\- these are not interpreted by \f2apt\fP directly, but are made available for use by individual processors
86.TP 3
87\-factorypath path
88Specify where to find annotation processor factories; if this option is used, the classpath is \f2not\fP searched for factories.
89.TP 3
90\-factory classname
91Name of annotation processor factory to use; bypasses default discovery process
92.LP
93.SS
94Options shared with javac
95.LP
96.TP 3
97\-d dir
98Specify where to place processor and javac generated class files
99.TP 3
100\-cp path or \-classpath
101path
102Specify where to find user class files and annotation processor factories. If \f2\-factorypath\fP is given, the classpath is not searched for factories.
103.LP
104.LP
105Consult the javac(1) man page for information on \f2javac\fP options.
106.LP
107.SH "NOTES"
108.LP
109.LP
110The 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.
111.LP
112.SH "SEE ALSO"
113.LP
114.RS 3
115.TP 2
116*
117javac: [
118.na
119\f2Solaris and Linux\fP @
120.fi
121http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html] [Windows]
122.TP 2
123*
124java: [
125.na
126\f2Solaris\fP @
127.fi
128http://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html] [
129.na
130\f2Linux\fP @
131.fi
132http://java.sun.com/javase/6/docs/technotes/tools/linux/java.html] [Windows]
133.RE
134
135.LP
136