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