javac.properties revision 3882:b1d7dfdd0ffb
1#
2# Copyright (c) 1999, 2017, Oracle and/or its affiliates. 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.  Oracle designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Oracle in the LICENSE file that accompanied this code.
10#
11# This code is distributed in the hope that it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14# version 2 for more details (a copy is included in the LICENSE file that
15# accompanied this code).
16#
17# You should have received a copy of the GNU General Public License version
18# 2 along with this work; if not, write to the Free Software Foundation,
19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20#
21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22# or visit www.oracle.com if you need additional information or have any
23# questions.
24#
25
26## standard options
27
28javac.opt.g=\
29    Generate all debugging info
30javac.opt.g.none=\
31    Generate no debugging info
32javac.opt.g.lines.vars.source=\
33    Generate only some debugging info
34javac.opt.nowarn=\
35    Generate no warnings
36javac.opt.verbose=\
37    Output messages about what the compiler is doing
38javac.opt.deprecation=\
39    Output source locations where deprecated APIs are used
40javac.opt.classpath=\
41    Specify where to find user class files and annotation processors
42javac.opt.modulepath=\
43    Specify where to find application modules
44javac.opt.sourcepath=\
45    Specify where to find input source files
46javac.opt.m=\
47    Compile only the specified module, check timestamps
48javac.opt.modulesourcepath=\
49    Specify where to find input source files for multiple modules
50javac.opt.bootclasspath=\
51    Override location of bootstrap class files
52javac.opt.system=\
53    Override location of system modules
54javac.opt.upgrademodulepath=\
55    Override location of upgradeable modules
56javac.opt.endorseddirs=\
57    Override location of endorsed standards path
58javac.opt.extdirs=\
59    Override location of installed extensions
60javac.opt.processorpath=\
61    Specify where to find annotation processors
62javac.opt.processormodulepath=\
63    Specify a module path where to find annotation processors
64javac.opt.processor=\
65    Names of the annotation processors to run; bypasses default discovery process
66javac.opt.parameters=\
67    Generate metadata for reflection on method parameters
68javac.opt.proc.none.only=\
69    Control whether annotation processing and/or compilation is done.
70javac.opt.d=\
71    Specify where to place generated class files
72javac.opt.sourceDest=\
73    Specify where to place generated source files
74javac.opt.headerDest=\
75    Specify where to place generated native header files
76javac.opt.J=\
77    Pass <flag> directly to the runtime system
78javac.opt.encoding=\
79    Specify character encoding used by source files
80javac.opt.profile=\
81    Check that API used is available in the specified profile
82javac.opt.target=\
83    Generate class files for specific VM version
84javac.opt.release=\
85    Compile for a specific VM version. Supported targets: {0}
86javac.opt.source=\
87    Provide source compatibility with specified release
88javac.opt.Werror=\
89    Terminate compilation if warnings occur
90javac.opt.A=\
91    Options to pass to annotation processors
92javac.opt.implicit=\
93    Specify whether or not to generate class files for implicitly referenced files
94javac.opt.pkginfo=\
95    Specify handling of package-info files
96javac.opt.multi-release=\
97    Specify which release to use in multi-release jars
98javac.opt.arg.class=\
99    <class>
100javac.opt.arg.class.list=\
101    <class1>[,<class2>,<class3>...]
102javac.opt.arg.flag=\
103    <flag>
104javac.opt.arg.key.equals.value=\
105    key[=value]
106javac.opt.arg.path=\
107    <path>
108javac.opt.arg.mspath=\
109    <module-source-path>
110javac.opt.arg.m=\
111    <module-name>
112javac.opt.arg.jdk=\
113    <jdk>|none
114javac.opt.arg.dirs=\
115    <dirs>
116javac.opt.arg.directory=\
117    <directory>
118javac.opt.arg.encoding=\
119    <encoding>
120javac.opt.arg.profile=\
121    <profile>
122javac.opt.arg.release=\
123    <release>
124javac.opt.arg.release=\
125    <release>
126javac.opt.arg.number=\
127    <number>
128javac.opt.plugin=\
129    Name and optional arguments for a plug-in to be run
130javac.opt.arg.plugin=\
131    "name args"
132javac.opt.arg.multi-release=\
133    <release>
134
135## extended options
136
137javac.opt.maxerrs=\
138    Set the maximum number of errors to print
139javac.opt.maxwarns=\
140    Set the maximum number of warnings to print
141javac.opt.nogj=\
142    Don't accept generics in the language
143javac.opt.moreinfo=\
144    Print extended information for type variables
145javac.opt.printsearch=\
146    Print information where classfiles are searched
147javac.opt.prompt=\
148    Stop after each error
149javac.opt.s=\
150    Emit java sources instead of classfiles
151javac.opt.version=\
152    Version information
153javac.opt.arg.pathname=\
154    <pathname>
155javac.opt.arg.file=\
156    <filename>
157javac.opt.Xbootclasspath.p=\
158    Prepend to the bootstrap class path
159javac.opt.Xbootclasspath.a=\
160    Append to the bootstrap class path
161javac.opt.Xlint=\
162    Enable recommended warnings
163javac.opt.Xlint.all=\
164    Enable all warnings
165javac.opt.Xlint.none=\
166    Disable all warnings
167#L10N: do not localize: -Xlint
168javac.opt.arg.Xlint=\
169    <key>(,<key>)*
170javac.opt.Xlint.custom=\
171    Warnings to enable or disable, separated by comma.\n\
172    Precede a key by '-' to disable the specified warning.\n\
173    Supported keys are:
174javac.opt.Xlint.desc.auxiliaryclass=\
175    Warn about an auxiliary class that is hidden in a source file, and is used from other files.
176
177javac.opt.Xlint.desc.cast=\
178    Warn about use of unnecessary casts.
179
180javac.opt.Xlint.desc.classfile=\
181    Warn about issues related to classfile contents.
182
183javac.opt.Xlint.desc.deprecation=\
184    Warn about use of deprecated items.
185
186javac.opt.Xlint.desc.dep-ann=\
187    Warn about items marked as deprecated in JavaDoc but not using the @Deprecated annotation.
188
189javac.opt.Xlint.desc.divzero=\
190    Warn about division by constant integer 0.
191
192javac.opt.Xlint.desc.empty=\
193    Warn about empty statement after if.
194
195javac.opt.Xlint.desc.exports=\
196    Warn about issues regarding module exports.
197
198javac.opt.Xlint.desc.fallthrough=\
199    Warn about falling through from one case of a switch statement to the next.
200
201javac.opt.Xlint.desc.finally=\
202    Warn about finally clauses that do not terminate normally.
203
204javac.opt.Xlint.desc.module=\
205    Warn about module system related issues.
206
207javac.opt.Xlint.desc.options=\
208    Warn about issues relating to use of command line options.
209
210javac.opt.Xlint.desc.overloads=\
211    Warn about issues regarding method overloads.
212
213javac.opt.Xlint.desc.overrides=\
214    Warn about issues regarding method overrides.
215
216javac.opt.Xlint.desc.path=\
217    Warn about invalid path elements on the command line.
218
219javac.opt.Xlint.desc.processing=\
220    Warn about issues regarding annotation processing.
221
222javac.opt.Xlint.desc.rawtypes=\
223    Warn about use of raw types.
224
225javac.opt.Xlint.desc.removal=\
226    Warn about use of API that has been marked for removal.
227
228javac.opt.Xlint.desc.serial=\
229    Warn about Serializable classes that do not provide a serial version ID. \n\
230\                             Also warn about access to non-public members from a serializable element.
231
232javac.opt.Xlint.desc.static=\
233    Warn about accessing a static member using an instance.
234
235javac.opt.Xlint.desc.try=\
236    Warn about issues relating to use of try blocks (i.e. try-with-resources).
237
238javac.opt.Xlint.desc.unchecked=\
239    Warn about unchecked operations.
240
241javac.opt.Xlint.desc.varargs=\
242    Warn about potentially unsafe vararg methods
243
244javac.opt.Xdoclint=\
245    Enable recommended checks for problems in javadoc comments
246# L10N: do not localize: all none
247javac.opt.Xdoclint.subopts = \
248    (all|none|[-]<group>)[/<access>]
249
250# L10N: do not localize: accessibility html missing reference syntax
251# L10N: do not localize: public protected package private
252javac.opt.Xdoclint.custom=\
253    Enable or disable specific checks for problems in javadoc comments,\n\
254    where <group> is one of accessibility, html, missing, reference, or syntax,\n\
255    and <access> is one of public, protected, package, or private.
256
257javac.opt.Xdoclint.package.args = \
258    [-]<packages>(,[-]<package>)*
259
260javac.opt.Xdoclint.package.desc=\
261    Enable or disable checks in specific packages. Each <package> is either the\n\
262    qualified name of a package or a package name prefix followed by '.*', which\n\
263    expands to all sub-packages of the given package. Each <package> can be prefixed\n\
264    with '-' to disable checks for the specified package or packages.
265
266javac.opt.doclint.format=\
267    Specify the format for documentation comments
268
269javac.opt.Xstdout=\
270    Redirect standard output
271javac.opt.X=\
272    Print help on extra options
273javac.opt.help=\
274    Print this help message
275javac.opt.print=\
276    Print out a textual representation of specified types
277javac.opt.printRounds=\
278    Print information about rounds of annotation processing
279javac.opt.printProcessorInfo=\
280    Print information about which annotations a processor is asked to process
281javac.opt.userpathsfirst=\
282    Search classpath and sourcepath for classes before the bootclasspath instead of after
283javac.opt.prefer=\
284    Specify which file to read when both a source file and class file are found for an implicitly compiled class
285javac.opt.AT=\
286    Read options and filenames from file
287javac.opt.diags=\
288    Select a diagnostic mode
289javac.opt.addExports=\
290    Specify a package to be considered as exported from its defining module\n\
291    to additional modules, or to all unnamed modules if <other-module> is ALL-UNNAMED.
292javac.opt.arg.addExports=\
293    <module>/<package>=<other-module>(,<other-module>)*
294javac.opt.addReads=\
295    Specify additional modules to be considered as required by a given module.\n\
296    <other-module> may be ALL-UNNAMED to require the unnamed module.
297javac.opt.arg.addReads=\
298    <module>=<other-module>(,<other-module>)*
299javac.opt.patch=\
300    Override or augment a module with classes and resources\n\
301    in JAR files or directories
302javac.opt.arg.patch=\
303    <module>=<file>(:<file>)*
304javac.opt.module=\
305    Specify a module to which the classes being compiled belong.
306javac.opt.arg.module=\
307    <module>
308javac.opt.addmods=\
309    Root modules to resolve in addition to the initial modules, or all modules\n\
310    on the module path if <module> is ALL-MODULE-PATH.
311javac.opt.arg.addmods=\
312    <module>(,<module>)*
313javac.opt.limitmods=\
314    Limit the universe of observable modules
315javac.opt.arg.limitmods=\
316    <module>(,<module>)*
317javac.opt.module.version=\
318    Specify version of modules that are being compiled
319javac.opt.arg.module.version=\
320    <version>
321javac.opt.inherit_runtime_environment=\
322    Inherit module system configuration options from the runtime environment.
323
324## errors
325
326javac.err.empty.A.argument=\
327    -A requires an argument; use ''-Akey'' or ''-Akey=value''
328javac.err.invalid.arg=\
329    invalid argument: {0}
330javac.err.invalid.A.key=\
331     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
332javac.err.invalid.flag=\
333    invalid flag: {0}
334javac.err.profile.bootclasspath.conflict=\
335    profile and bootclasspath options cannot be used together
336javac.err.invalid.profile=\
337    invalid profile: {0}
338javac.err.invalid.target=\
339    invalid target release: {0}
340javac.err.option.not.allowed.with.target=\
341    option {0} not allowed with target {1}
342javac.err.option.too.many=\
343    option {0} can only be specified once
344javac.err.no.source.files=\
345    no source files
346javac.err.no.source.files.classes=\
347    no source files or class names
348javac.err.req.arg=\
349    {0} requires an argument
350javac.err.invalid.source=\
351    invalid source release: {0}
352javac.err.error.writing.file=\
353    error writing {0}; {1}
354javac.err.sourcepath.modulesourcepath.conflict=\
355    cannot specify both --source-path and --module-source-path
356javac.warn.source.target.conflict=\
357    source release {0} requires target release {1}
358javac.warn.target.default.source.conflict=\
359    target release {0} conflicts with default source release {1}
360javac.warn.profile.target.conflict=\
361    profile {0} is not valid for target release {1}
362javac.err.file.not.found=\
363    file not found: {0}
364javac.err.file.not.directory=\
365    not a directory: {0}
366javac.err.file.not.file=\
367    not a file: {0}
368javac.err.cannot.access.runtime.env=\
369    cannot access runtime environment
370javac.err.bad.value.for.option=\
371    bad value for {0} option: ''{1}''
372javac.err.no.value.for.option=\
373    no value for {0} option
374javac.err.repeated.value.for.patch.module=\
375    --patch-module specified more than once for {0}
376
377## messages
378
379javac.msg.usage.header=\
380Usage: {0} <options> <source files>\n\
381where possible options include:
382
383javac.msg.usage=\
384    Usage: {0} <options> <source files>\n\
385    use --help for a list of possible options
386
387javac.msg.usage.nonstandard.footer=\
388These extra options are subject to change without notice.
389
390javac.msg.bug=\
391An exception has occurred in the compiler ({0}). \
392Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) \
393after checking the Bug Database (http://bugs.java.com) for duplicates. \
394Include your program and the following diagnostic in your report. Thank you.
395
396javac.msg.io=\
397\n\nAn input/output error occurred.\n\
398Consult the following stack trace for details.\n
399
400javac.msg.proc.annotation.uncaught.exception=\
401\n\nAn annotation processor threw an uncaught exception.\n\
402Consult the following stack trace for details.\n
403
404javac.msg.plugin.uncaught.exception=\
405\n\nA plugin threw an uncaught exception.\n\
406Consult the following stack trace for details.\n
407
408javac.msg.resource=\
409\n\nThe system is out of resources.\n\
410Consult the following stack trace for details.\n
411
412javac.version={0} {1}
413javac.fullVersion={0} full version "{1}"
414
415javac.err.release.bootclasspath.conflict=\
416    option {0} cannot be used together with --release
417
418javac.err.unsupported.release.version=\
419    release version {0} not supported
420
421javac.err.release.not.standard.file.manager=\
422    --release option specified, but the provided JavaFileManager is not a StandardJavaFileManager.
423