author | herrick |
Fri, 21 Dec 2018 07:40:47 -0500 | |
branch | JDK-8200758-branch |
changeset 57091 | 06bc4bd64599 |
parent 57080 | bd4ce7f9ea2c |
child 57096 | d06bec27f8c9 |
permissions | -rw-r--r-- |
56986 | 1 |
# |
2 |
# Copyright (c) 2017, 2018, 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 |
||
57039 | 27 |
MSG_Help_common=Usage: jpackage <mode> <options>\n\ |
56986 | 28 |
\n\ |
29 |
where mode is one of: \n\ |
|
30 |
\ create-image\n\ |
|
31 |
\ Generates a platform-specific application image.\n\ |
|
32 |
\ create-installer <type>\n\ |
|
33 |
\ Generates a platform-specific installer for the application.\n\ |
|
34 |
\ Valid values for "type" are "msi", "exe", "rpm", "deb", "dmg",\n\ |
|
35 |
\ "pkg", and "pkg-app-store".\n\ |
|
57071 | 36 |
\ If "type" is omitted, all supported types of installable\n\ |
37 |
\ packages for the current platform will be generated.\n\ |
|
56986 | 38 |
\ create-jre-installer <type>\n\ |
57071 | 39 |
\ Generates a platform-specific installer for JRE.\n\ |
56986 | 40 |
\ Valid values for "type" are "msi", "exe", "rpm", "deb", "dmg", \n\ |
41 |
\ and "pkg".\n\ |
|
57071 | 42 |
\ If "type" is omitted, all supported types of installable\n\ |
43 |
\ packages for the current platform will be generated.\n\ |
|
56986 | 44 |
\ \n\ |
45 |
Sample usages:\n\ |
|
46 |
--------------\n\ |
|
57071 | 47 |
\ Generate an application image from a non-modular jar file:\n\ |
48 |
\ jpackage create-image --input inputdir --output outputdir \\\n\ |
|
49 |
\ --name AppName --class package.ClassName --main-jar MyJar.jar\n\ |
|
50 |
\ jpackage create-image -i inputdir -o outputdir -n AppName \\\n\ |
|
51 |
\ -c package.ClassName -j MyJar.jar\n\ |
|
52 |
\ Generate an application image from a modular jar file:\n\ |
|
53 |
\ jpackage create-image --output outputdir --name AppName \\\n\ |
|
54 |
\ --class package.ClassName -module moduleName -p modulePath\n\ |
|
55 |
\ jpackage create-image --o outputdir -n AppName \\\n\ |
|
56 |
\ -c package.ClassName -m moduleName -p modulePath\n\ |
|
57 |
\ Generate an application installer:\n\ |
|
58 |
\ jpackage create-installer -i inputdir -o outputdir \\\n\ |
|
59 |
\ -n "Installer Name" -c package.ClassName -j MyJar.jar\n\ |
|
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
60 |
\ jpackage create-installer -o outputdir -n "Installer Name" \\\n\ |
57071 | 61 |
--app-image <app image dir>\n\ |
62 |
\ Generate a JRE installer:\n\ |
|
63 |
\ jpackage create-jre-installer -name <jre-name> -output outputdir\n\ |
|
64 |
\ jpackage create-jre-installer -n <jre-name> -o outputdir \\\n\ |
|
65 |
\ --runtime-image <path>\n\ |
|
56986 | 66 |
\n\ |
67 |
The following options are valid for all platforms:\n\ |
|
57060 | 68 |
\ @<filename> \n\ |
57071 | 69 |
\ Read options and/or mode from a file \n\ |
56986 | 70 |
\ --help -h \n\ |
57071 | 71 |
\ Print the usage text with a list and description of each valid\n\ |
72 |
\ option for the current platform to the output stream, and exit\n\ |
|
73 |
\ --version -v\n\ |
|
74 |
\ Print the product version to the output stream and exit\n\ |
|
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
75 |
\ --output -o <output path>\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
76 |
\ Path where generated output file is placed\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
77 |
\ (absolute path or relative to the current directory)\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
78 |
\ --input -i <input path>\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
79 |
\ Path of the input directory that contains the files to package\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
80 |
\ (absolute path or relative to the current directory)\n\ |
56986 | 81 |
\ --files -f <input files>\n\ |
57071 | 82 |
\ A {0} separated list of files in the input dir to be packaged\n\ |
57025 | 83 |
\ If omitted, all files in the input directory will be packaged.\n\ |
56986 | 84 |
\ --name -n <application name>\n\ |
57071 | 85 |
\ Name of the application\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
86 |
\ --main-jar -j <main jar file>\n\ |
57071 | 87 |
\ The main JAR of the application\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
88 |
\ (specified as a path relative to the input path)\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
89 |
\ This JAR should contain the main-class.\n\ |
56986 | 90 |
\ --class -c <class name>\n\ |
57071 | 91 |
\ Qualified name of the application class to execute\n\ |
92 |
\ --app-version <version string>\n\ |
|
93 |
\ Version of the application\n\ |
|
56986 | 94 |
\ --arguments -a <main class arguments>\n\ |
57071 | 95 |
\ Command line arguments to pass to the main class if no\n\ |
96 |
\ arguments are specified by the launcher\n\ |
|
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
97 |
\ --icon <icon file path>\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
98 |
\ Path of the icon of the application bundle\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
99 |
\ (absolute path or relative to the current directory)\n\ |
56986 | 100 |
\ --singleton\n\ |
101 |
\ Prevents multiple instances of the application from launching\n\ |
|
57071 | 102 |
\ (see SingleInstanceService API for more details)\n\ |
56986 | 103 |
\ --identifier <id string>\n\ |
57071 | 104 |
\ Machine readable identifier of the application\n\ |
105 |
\ The format must be a DNS name in reverse order,\n\ |
|
106 |
\ such as com.example.myapplication.\n\ |
|
56986 | 107 |
\ --verbose\n\ |
57071 | 108 |
\ Enables verbose output\n\ |
56986 | 109 |
\ --strip-native-commands\n\ |
57071 | 110 |
\ Removes native executables from the custom run-time images\n\ |
56986 | 111 |
\ --jvm-args <java vm arguments>\n\ |
57071 | 112 |
\ JVM flags and options to pass to the application\n\ |
56986 | 113 |
\ --file-associations <file path>\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
114 |
\ Path to a Properties file that contains list of key, value pairs\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
115 |
\ (absolute path or relative to the current directory)\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
116 |
\ The keys "extension", "mime-type", "icon", and "description"\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
117 |
\ can be used to describe the association.\n\ |
56986 | 118 |
\ --secondary-launcher <file path>\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
119 |
\ Path to a Properties file that contains list of key, value pairs\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
120 |
\ (absolute path or relative to the current directory)\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
121 |
\ The keys "name" (required), "version", "module", "class",\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
122 |
\ "icon", "arguments", "jvm-args", "win-menu",\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
123 |
\ "win-shortcut", and "win-console" can be used to describe\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
124 |
\ the secondary launcher.\n\ |
56986 | 125 |
\ --build-root <file path>\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
126 |
\ Path of the directory used to create temporary files\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
127 |
\ (absolute path or relative to the current directory)\n\ |
56986 | 128 |
\ --runtime-image <file path>\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
129 |
\ Path of the predefined runtime image that is used to build\n\ |
57071 | 130 |
\ an application image and installable package\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
131 |
\ (absolute path or relative to the current directory)\n\ |
56986 | 132 |
\ --app-image <file path>\n\ |
57071 | 133 |
\ Location of the predefined application image that is used\n\ |
134 |
\ to build an installable package\n\ |
|
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
135 |
\ (absolute path or relative to the current directory)\n\ |
56986 | 136 |
\ --install-dir <file path>\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
137 |
\ Absolute path of the installation directory of the application\n\ |
57071 | 138 |
\ This option is ignored on Windows, use --win-dir-chooser to\n\ |
139 |
\ provide user the ability to choose the installation directory.\n\ |
|
57080 | 140 |
\ --license-file <file path>\n\ |
141 |
\ Path to the license file\n\ |
|
142 |
\ (absolute path or relative to the current directory)\n\ |
|
56986 | 143 |
\ --copyright <copyright string>\n\ |
57071 | 144 |
\ Copyright for the application\n\ |
56986 | 145 |
\ --description <description string>\n\ |
57071 | 146 |
\ Description of the application\n\ |
56986 | 147 |
\ --category <category string>\n\ |
57071 | 148 |
\ Category or group of the application\n\ |
56986 | 149 |
\ --vendor <vendor string>\n\ |
57071 | 150 |
\ Vendor of the application\n\ |
151 |
\ --force Allow the deletion of any existing output root directory\n\ |
|
152 |
\ when creating an Application image\n\ |
|
57091
06bc4bd64599
8215515: Add a command line option to override internal resources.
herrick
parents:
57080
diff
changeset
|
153 |
\ --resource-dir <path>\n\ |
06bc4bd64599
8215515: Add a command line option to override internal resources.
herrick
parents:
57080
diff
changeset
|
154 |
\ Path to override jpackage resources\n\ |
06bc4bd64599
8215515: Add a command line option to override internal resources.
herrick
parents:
57080
diff
changeset
|
155 |
\ Icons, template files, and other resources of jpackage can be\n\ |
06bc4bd64599
8215515: Add a command line option to override internal resources.
herrick
parents:
57080
diff
changeset
|
156 |
\ over-ridden by adding replacement resources to this directory.\n\ |
06bc4bd64599
8215515: Add a command line option to override internal resources.
herrick
parents:
57080
diff
changeset
|
157 |
\ (absolute path or relative to the current directory)\n\ |
56986 | 158 |
\n\ |
159 |
Modular options:\n\ |
|
160 |
\ --module -m <module name>\n\ |
|
57071 | 161 |
\ Main module of the application\n\ |
162 |
\ This module must contain the main-class,\n\ |
|
163 |
\ and be located on the module path.\n\ |
|
56986 | 164 |
\ --module-path -p <module path>\n\ |
57071 | 165 |
\ Path JLink looks in for modules when packaging the Java Runtime\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
166 |
\ (absolute path or relative to the current directory)\n\ |
56986 | 167 |
\ --add-modules <module list>\n\ |
57025 | 168 |
\ A {0} separated list of modules to add to JImage creation,\n\ |
57071 | 169 |
\ including possible services\n\ |
56986 | 170 |
\ --limit-modules <module list>\n\ |
57071 | 171 |
\ A {0} separated list of Modules to limit JImage creation to\n\ |
56986 | 172 |
|
173 |
MSG_Help_mac=\nThe following options are valid for Mac OS X platforms:\n\ |
|
174 |
\ --mac-sign\n\ |
|
57071 | 175 |
\ Request that the bundle be signed\n\ |
56986 | 176 |
\ --mac-bundle-name <name string>\n\ |
57071 | 177 |
\ Name of the application as it appears in the Menu Bar\n\ |
178 |
\ This can be different from the application name.\n\ |
|
179 |
\ This name must be less than 16 characters long and be suitable for\n\ |
|
180 |
\ displaying in the menu bar and the application Info window.\n\ |
|
181 |
\ Defaults to the application name.\n\ |
|
56986 | 182 |
\ --mac-bundle-identifier <ID string>\n\ |
183 |
\ An identifier that uniquely identifies the application for MacOSX\n\ |
|
57071 | 184 |
\ (and on the Mac App Store)\n\ |
185 |
\ May only use alphanumeric (A-Z,a-z,0-9), hyphen (-),\n\ |
|
186 |
\ and period (.) characters.\n\ |
|
56986 | 187 |
\ --mac-app-store-category <category string>\n\ |
57071 | 188 |
\ Mac App Store Categories\n\ |
189 |
\ Note that the key is the string shown to\n\ |
|
56986 | 190 |
\ the user and the value is the ID of the category.\n\ |
191 |
\ --mac-app-store-entitlements <file path>\n\ |
|
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
192 |
\ Path of a custom mac app store entitlements file\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
193 |
\ (absolute path or relative to the current directory)\n\ |
56986 | 194 |
\ --mac-bundle-signing-prefix <prefix string>\n\ |
195 |
\ When signing the application bundle, this value is prefixed to all\n\ |
|
57071 | 196 |
\ components that need to be signed that don't have\n\ |
197 |
\ an existing bundle identifier.\n\ |
|
56986 | 198 |
\ --mac-signing-key-user-name <user name>\n\ |
57071 | 199 |
\ User name portion of the typical\n\ |
200 |
\ "Mac Developer ID Application: <user name>" signing key\n\ |
|
56986 | 201 |
\ --mac-signing-keychain <file path>\n\ |
57078
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
202 |
\ Path of the keychain to use\n\ |
db003bfc5bf7
JDK-8215453: remove unused BundlerParams and fix misleading messages
herrick
parents:
57071
diff
changeset
|
203 |
\ (absolute path or relative to the current directory)\n\ |
57071 | 204 |
\ If not specified, the standard keychains are used.\n\ |
56986 | 205 |
|
206 |
MSG_Help_linux=\nThe following options are valid for Linux platforms:\n\ |
|
207 |
\ --linux-bundle-name <bundle name>\n\ |
|
57071 | 208 |
\ Name for Linux bundle, defaults to the application name\n\ |
56986 | 209 |
\ --linux-package-deps\n\ |
57071 | 210 |
\ Required packages or capabilities for the application\n\ |
56986 | 211 |
\ --linux-rpm-license-type <type string>\n\ |
57071 | 212 |
\ Type of the license ("License: <value>" of the RPM .spec)\n\ |
56986 | 213 |
\ --linux-deb-maintainer <email address>\n\ |
57071 | 214 |
\ Maintainer for .deb bundle\n\ |
56986 | 215 |
|
216 |
MSG_Help_win=\nThe following options are valid for Windows platforms:\n\ |
|
217 |
\ --win-menu\n\ |
|
57071 | 218 |
\ Adds the application to the system menu\n\ |
56986 | 219 |
\ --win-menu-group <menu group name>\n\ |
57071 | 220 |
\ Start Menu group this application is placed in\n\ |
56986 | 221 |
\ --win-per-user-install\n\ |
57071 | 222 |
\ Request to perform an install on a per-user basis\n\ |
56986 | 223 |
\ --win-dir-chooser\n\ |
224 |
\ Adds a dialog to enable the user to choose a directory in which\n\ |
|
57071 | 225 |
\ the product is installed\n\ |
56986 | 226 |
\ --win-registry-name <registry name>\n\ |
57071 | 227 |
\ Name of the application for registry references.\n\ |
228 |
\ The default is the Application Name with only\n\ |
|
229 |
\ alphanumerics, dots, and dashes (no whitespace)\n\ |
|
56986 | 230 |
\ --win-upgrade-uuid <id string>\n\ |
57071 | 231 |
\ UUID associated with upgrades for this package\n\ |
56986 | 232 |
\ --win-shortcut\n\ |
57071 | 233 |
\ Creates a desktop shortcut for the application\n\ |
56986 | 234 |
\ --win-console\n\ |
57071 | 235 |
\ Creates a console launcher for the application, should be\n\ |
236 |
\ specified for application which requires console interactions\n\ |
|
57022
81021f910bc2
8213333: Fix issues found in jpackager with automated tests
herrick
parents:
57021
diff
changeset
|
237 |
|
57039 | 238 |
MSG_Help_no_args=Usage: jpackage <mode> <options>\n\ |
57071 | 239 |
\Use jpackage --help (or -h) for a list of possible options\ |
240 |