javac.properties revision 4068:c07524646483
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>
134javac.opt.arg.default.module.for.created.files=\
135    <module-name>
136
137## extended options
138
139javac.opt.maxerrs=\
140    Set the maximum number of errors to print
141javac.opt.maxwarns=\
142    Set the maximum number of warnings to print
143javac.opt.nogj=\
144    Don't accept generics in the language
145javac.opt.moreinfo=\
146    Print extended information for type variables
147javac.opt.printsearch=\
148    Print information where classfiles are searched
149javac.opt.prompt=\
150    Stop after each error
151javac.opt.s=\
152    Emit java sources instead of classfiles
153javac.opt.version=\
154    Version information
155javac.opt.arg.pathname=\
156    <pathname>
157javac.opt.arg.file=\
158    <filename>
159javac.opt.Xbootclasspath.p=\
160    Prepend to the bootstrap class path
161javac.opt.Xbootclasspath.a=\
162    Append to the bootstrap class path
163javac.opt.Xlint=\
164    Enable recommended warnings
165javac.opt.Xlint.all=\
166    Enable all warnings
167javac.opt.Xlint.none=\
168    Disable all warnings
169#L10N: do not localize: -Xlint
170javac.opt.arg.Xlint=\
171    <key>(,<key>)*
172javac.opt.Xlint.custom=\
173    Warnings to enable or disable, separated by comma.\n\
174    Precede a key by '-' to disable the specified warning.\n\
175    Supported keys are:
176javac.opt.Xlint.desc.auxiliaryclass=\
177    Warn about an auxiliary class that is hidden in a source file, and is used from other files.
178
179javac.opt.Xlint.desc.cast=\
180    Warn about use of unnecessary casts.
181
182javac.opt.Xlint.desc.classfile=\
183    Warn about issues related to classfile contents.
184
185javac.opt.Xlint.desc.deprecation=\
186    Warn about use of deprecated items.
187
188javac.opt.Xlint.desc.dep-ann=\
189    Warn about items marked as deprecated in JavaDoc but not using the @Deprecated annotation.
190
191javac.opt.Xlint.desc.divzero=\
192    Warn about division by constant integer 0.
193
194javac.opt.Xlint.desc.empty=\
195    Warn about empty statement after if.
196
197javac.opt.Xlint.desc.exports=\
198    Warn about issues regarding module exports.
199
200javac.opt.Xlint.desc.fallthrough=\
201    Warn about falling through from one case of a switch statement to the next.
202
203javac.opt.Xlint.desc.finally=\
204    Warn about finally clauses that do not terminate normally.
205
206javac.opt.Xlint.desc.module=\
207    Warn about module system related issues.
208
209javac.opt.Xlint.desc.opens=\
210    Warn about issues regarding module opens.
211
212javac.opt.Xlint.desc.options=\
213    Warn about issues relating to use of command line options.
214
215javac.opt.Xlint.desc.overloads=\
216    Warn about issues regarding method overloads.
217
218javac.opt.Xlint.desc.overrides=\
219    Warn about issues regarding method overrides.
220
221javac.opt.Xlint.desc.path=\
222    Warn about invalid path elements on the command line.
223
224javac.opt.Xlint.desc.processing=\
225    Warn about issues regarding annotation processing.
226
227javac.opt.Xlint.desc.rawtypes=\
228    Warn about use of raw types.
229
230javac.opt.Xlint.desc.removal=\
231    Warn about use of API that has been marked for removal.
232
233javac.opt.Xlint.desc.serial=\
234    Warn about Serializable classes that do not provide a serial version ID. \n\
235\                             Also warn about access to non-public members from a serializable element.
236
237javac.opt.Xlint.desc.static=\
238    Warn about accessing a static member using an instance.
239
240javac.opt.Xlint.desc.try=\
241    Warn about issues relating to use of try blocks (i.e. try-with-resources).
242
243javac.opt.Xlint.desc.unchecked=\
244    Warn about unchecked operations.
245
246javac.opt.Xlint.desc.varargs=\
247    Warn about potentially unsafe vararg methods
248
249javac.opt.Xdoclint=\
250    Enable recommended checks for problems in javadoc comments
251# L10N: do not localize: all none
252javac.opt.Xdoclint.subopts = \
253    (all|none|[-]<group>)[/<access>]
254
255# L10N: do not localize: accessibility html missing reference syntax
256# L10N: do not localize: public protected package private
257javac.opt.Xdoclint.custom=\
258    Enable or disable specific checks for problems in javadoc comments,\n\
259    where <group> is one of accessibility, html, missing, reference, or syntax,\n\
260    and <access> is one of public, protected, package, or private.
261
262javac.opt.Xdoclint.package.args = \
263    [-]<packages>(,[-]<package>)*
264
265javac.opt.Xdoclint.package.desc=\
266    Enable or disable checks in specific packages. Each <package> is either the\n\
267    qualified name of a package or a package name prefix followed by '.*', which\n\
268    expands to all sub-packages of the given package. Each <package> can be prefixed\n\
269    with '-' to disable checks for the specified package or packages.
270
271javac.opt.doclint.format=\
272    Specify the format for documentation comments
273
274javac.opt.Xstdout=\
275    Redirect standard output
276javac.opt.X=\
277    Print help on extra options
278javac.opt.help=\
279    Print this help message
280javac.opt.print=\
281    Print out a textual representation of specified types
282javac.opt.printRounds=\
283    Print information about rounds of annotation processing
284javac.opt.printProcessorInfo=\
285    Print information about which annotations a processor is asked to process
286javac.opt.userpathsfirst=\
287    Search classpath and sourcepath for classes before the bootclasspath instead of after
288javac.opt.prefer=\
289    Specify which file to read when both a source file and class file are found for an implicitly compiled class
290javac.opt.AT=\
291    Read options and filenames from file
292javac.opt.diags=\
293    Select a diagnostic mode
294javac.opt.addExports=\
295    Specify a package to be considered as exported from its defining module\n\
296    to additional modules, or to all unnamed modules if <other-module> is ALL-UNNAMED.
297javac.opt.arg.addExports=\
298    <module>/<package>=<other-module>(,<other-module>)*
299javac.opt.addReads=\
300    Specify additional modules to be considered as required by a given module.\n\
301    <other-module> may be ALL-UNNAMED to require the unnamed module.
302javac.opt.arg.addReads=\
303    <module>=<other-module>(,<other-module>)*
304javac.opt.patch=\
305    Override or augment a module with classes and resources\n\
306    in JAR files or directories
307javac.opt.arg.patch=\
308    <module>=<file>(:<file>)*
309javac.opt.module=\
310    Specify a module to which the classes being compiled belong.
311javac.opt.arg.module=\
312    <module>
313javac.opt.addmods=\
314    Root modules to resolve in addition to the initial modules, or all modules\n\
315    on the module path if <module> is ALL-MODULE-PATH.
316javac.opt.arg.addmods=\
317    <module>(,<module>)*
318javac.opt.limitmods=\
319    Limit the universe of observable modules
320javac.opt.arg.limitmods=\
321    <module>(,<module>)*
322javac.opt.module.version=\
323    Specify version of modules that are being compiled
324javac.opt.arg.module.version=\
325    <version>
326javac.opt.inherit_runtime_environment=\
327    Inherit module system configuration options from the runtime environment.
328javac.opt.default.module.for.created.files=\
329    Fallback target module for files created by annotation processors, if none specified or inferred.
330
331## errors
332
333javac.err.empty.A.argument=\
334    -A requires an argument; use ''-Akey'' or ''-Akey=value''
335javac.err.invalid.arg=\
336    invalid argument: {0}
337javac.err.invalid.A.key=\
338     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
339javac.err.invalid.flag=\
340    invalid flag: {0}
341javac.err.profile.bootclasspath.conflict=\
342    profile and bootclasspath options cannot be used together
343javac.err.invalid.profile=\
344    invalid profile: {0}
345javac.err.invalid.target=\
346    invalid target release: {0}
347javac.err.option.not.allowed.with.target=\
348    option {0} not allowed with target {1}
349javac.err.option.too.many=\
350    option {0} can only be specified once
351javac.err.no.source.files=\
352    no source files
353javac.err.no.source.files.classes=\
354    no source files or class names
355javac.err.req.arg=\
356    {0} requires an argument
357javac.err.invalid.source=\
358    invalid source release: {0}
359javac.err.error.writing.file=\
360    error writing {0}; {1}
361javac.err.sourcepath.modulesourcepath.conflict=\
362    cannot specify both --source-path and --module-source-path
363javac.warn.source.target.conflict=\
364    source release {0} requires target release {1}
365javac.warn.target.default.source.conflict=\
366    target release {0} conflicts with default source release {1}
367javac.warn.profile.target.conflict=\
368    profile {0} is not valid for target release {1}
369javac.err.file.not.found=\
370    file not found: {0}
371javac.err.file.not.directory=\
372    not a directory: {0}
373javac.err.file.not.file=\
374    not a file: {0}
375javac.err.cannot.access.runtime.env=\
376    cannot access runtime environment
377javac.err.two.class.loaders.1=\
378    javac is split between multiple class loaders: check your configuration
379javac.err.two.class.loaders.2=\
380    javac is split between multiple class loaders:\n\
381    one class comes from file: {0}\n\
382    while javac comes from {1}
383javac.err.bad.value.for.option=\
384    bad value for {0} option: ''{1}''
385javac.err.no.value.for.option=\
386    no value for {0} option
387javac.err.repeated.value.for.patch.module=\
388    --patch-module specified more than once for {0}
389
390javac.err.unmatched.quote=\
391    unmatched quote in environment variable %s
392
393## messages
394
395javac.msg.usage.header=\
396Usage: {0} <options> <source files>\n\
397where possible options include:
398
399javac.msg.usage=\
400    Usage: {0} <options> <source files>\n\
401    use --help for a list of possible options
402
403javac.msg.usage.nonstandard.footer=\
404These extra options are subject to change without notice.
405
406javac.msg.bug=\
407An exception has occurred in the compiler ({0}). \
408Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) \
409after checking the Bug Database (http://bugs.java.com) for duplicates. \
410Include your program and the following diagnostic in your report. Thank you.
411
412javac.msg.io=\
413\n\nAn input/output error occurred.\n\
414Consult the following stack trace for details.\n
415
416javac.msg.proc.annotation.uncaught.exception=\
417\n\nAn annotation processor threw an uncaught exception.\n\
418Consult the following stack trace for details.\n
419
420javac.msg.plugin.uncaught.exception=\
421\n\nA plugin threw an uncaught exception.\n\
422Consult the following stack trace for details.\n
423
424javac.msg.resource=\
425\n\nThe system is out of resources.\n\
426Consult the following stack trace for details.\n
427
428javac.version={0} {1}
429javac.fullVersion={0} full version "{1}"
430
431javac.err.release.bootclasspath.conflict=\
432    option {0} cannot be used together with --release
433
434javac.err.unsupported.release.version=\
435    release version {0} not supported
436
437javac.err.release.not.standard.file.manager=\
438    --release option specified, but the provided JavaFileManager is not a StandardJavaFileManager.
439