src/jdk.compiler/share/classes/com/sun/tools/javac/resources/launcher.properties
author jjg
Tue, 25 Sep 2018 10:30:32 -0700
changeset 51871 8f66a57054b7
parent 51841 f191aca8f96d
permissions -rw-r--r--
8210839: Improve interaction between source launcher and classpath Reviewed-by: alanb, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50453
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     1
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     2
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     4
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    10
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    15
# accompanied this code).
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    16
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    20
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    23
# questions.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    24
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    25
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    26
# Messages in this file which use "placeholders" for values (e.g. {0}, {1})
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    27
# are preceded by a stylized comment describing the type of the corresponding
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    28
# values.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    29
# The simple types currently in use are:
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    30
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    31
# annotation        annotation compound
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    32
# boolean           true or false
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    33
# diagnostic        a sub-message; see compiler.misc.*
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    34
# fragment          similar to 'message segment', but with more specific type
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    35
# modifier          a Java modifier; e.g. public, private, protected
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    36
# file              a file URL
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    37
# file object       a file URL - similar to 'file' but typically used for source/class files, hence more specific
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    38
# flag              a Flags.Flag instance
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    39
# name              a name, typically a Java identifier
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    40
# number            an integer
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    41
# option name       the name of a command line option
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    42
# source version    a source version number, such as 1.5, 1.6, 1.7
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    43
# string            a general string
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    44
# symbol            the name of a declared type
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    45
# symbol kind       the kind of a symbol (i.e. method, variable)
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    46
# kind name         an informative description of the kind of a declaration; see compiler.misc.kindname.*
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    47
# token             the name of a non-terminal in source code; see compiler.misc.token.*
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    48
# type              a Java type; e.g. int, X, X<T>
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    49
# object            a Java object (unspecified)
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    50
# unused            the value is not used in this message
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    51
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    52
# The following compound types are also used:
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    53
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    54
# collection of X   a comma-separated collection of items; e.g. collection of type
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    55
# list of X         a comma-separated list of items; e.g. list of type
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    56
# set of X          a comma-separated set of items; e.g. set of modifier
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    57
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    58
# These may be composed:
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    59
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    60
# list of type or message segment
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    61
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    62
# The following type aliases are supported:
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    63
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    64
# message segment --> diagnostic or fragment
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    65
# file name --> file, path or file object
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    66
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    67
# Custom comments are supported in parenthesis i.e.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    68
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    69
# number (classfile major version)
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    70
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    71
# These comments are used internally in order to generate an enum-like class declaration containing
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    72
# a method/field for each of the diagnostic keys listed here. Those methods/fields can then be used
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    73
# by javac code to build diagnostics in a type-safe fashion.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    74
#
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    75
# In addition, these comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    76
# using info derived from the collected set of examples in test/tools/javac/diags/examples.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    77
# MessageInfo can also be run as a standalone utility providing more facilities
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    78
# for manipulating this file. For more details, see MessageInfo.java.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    79
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    80
## All errors are preceded by this string.
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    81
launcher.error=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    82
    error:\u0020
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    83
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    84
launcher.err.no.args=\
51841
f191aca8f96d 8210275: Source Launcher should fail if --source is used without a source file
jjg
parents: 50453
diff changeset
    85
    no path for source file
50453
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    86
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    87
# 0: string
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    88
launcher.err.invalid.filename=\
51841
f191aca8f96d 8210275: Source Launcher should fail if --source is used without a source file
jjg
parents: 50453
diff changeset
    89
    invalid path for source file: {0}
50453
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    90
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    91
# 0: path
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    92
launcher.err.file.not.found=\
51841
f191aca8f96d 8210275: Source Launcher should fail if --source is used without a source file
jjg
parents: 50453
diff changeset
    93
    source file not found: {0}
50453
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    94
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    95
launcher.err.compilation.failed=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    96
    compilation failed
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    97
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
    98
launcher.err.no.class=\
51841
f191aca8f96d 8210275: Source Launcher should fail if --source is used without a source file
jjg
parents: 50453
diff changeset
    99
    no class declared in source file
50453
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   100
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   101
launcher.err.main.not.public.static=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   102
    ''main'' method is not declared ''public static''
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   103
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   104
launcher.err.main.not.void=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   105
    ''main'' method is not declared with a return type of ''void''
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   106
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   107
# 0: string
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   108
launcher.err.cant.find.class=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   109
    can''t find class: {0}
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   110
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   111
# 0: string
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   112
launcher.err.cant.find.main.method=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   113
    can''t find main(String[]) method in class: {0}
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   114
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   115
# 0: string
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   116
launcher.err.cant.access.main.method=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   117
    can''t access main method in class: {0}
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   118
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   119
# 0: path, 1: object
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   120
launcher.err.cant.read.file=\
51841
f191aca8f96d 8210275: Source Launcher should fail if --source is used without a source file
jjg
parents: 50453
diff changeset
   121
    error reading source file {0}: {1}
50453
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   122
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   123
# 0: string
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   124
launcher.err.no.value.for.option=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   125
    no value given for option: {0}
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   126
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   127
# 0: string
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   128
launcher.err.invalid.value.for.source=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   129
    invalid value for --source option: {0}
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   130
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   131
launcher.err.enable.preview.requires.source=\
f91927a2c8d3 8201274: Launch Single-File Source-Code Programs
jjg
parents:
diff changeset
   132
    --enable-preview must be used with --source