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