25 # |
25 # |
26 |
26 |
27 MSG_Help=Usage: jpackage <mode> <options>\n\ |
27 MSG_Help=Usage: jpackage <mode> <options>\n\ |
28 \n\ |
28 \n\ |
29 where mode is one of: \n\ |
29 where mode is one of: \n\ |
30 \ create-image\n\ |
30 \ create-app-image\n\ |
31 \ Generates a platform-specific application image.\n\ |
31 \ Generates a platform-specific application image.\n\ |
32 \ create-installer\n\ |
32 \ create-installer\n\ |
33 \ Generates a platform-specific installer for the application.\n\ |
33 \ Generates a platform-specific installer for the application.\n\ |
34 \ \n\ |
34 \ \n\ |
35 Sample usages:\n\ |
35 Sample usages:\n\ |
36 --------------\n\ |
36 --------------\n\ |
37 \ Generate a modular application image:\n\ |
37 \ Generate a modular application image:\n\ |
38 \ jpackage create-image -o outputdir -n name \\\n\ |
38 \ jpackage create-app-image -o outputdir -n name \\\n\ |
39 \ -m moduleName/className -p modulePath\n\ |
39 \ -p modulePath -m moduleName/className\n\ |
40 \ To provide your own options to jlink, run jlink separately:\n\ |
40 \ To provide your own options to jlink, run jlink separately:\n\ |
41 \ jlink --output app.runtime -m moduleName -p modulePath \\\n\ |
41 \ jlink --output appRuntimeImage -p ModulePath -m moduleName\\\n\ |
42 \ --no-header-files [<additional jlink options>...]\n\ |
42 \ --no-header-files [<additional jlink options>...]\n\ |
43 \ jpackage -o outputdir -n name -m moduleName/className \\\n\ |
43 \ jpackage create-app-image -o outputdir -n name\\\n\ |
44 \ --runtime-image app-runtime\n\ |
44 \ -m moduleName/className --runtime-image appRuntimeIMage\n\ |
45 \ Generate a non-modular application image:\n\ |
45 \ Generate a non-modular application image:\n\ |
46 \ jpackage create-image -o outputdir -i inputdir -n name \\\n\ |
46 \ jpackage create-app-image -o outputdir -i inputdir -n name \\\n\ |
47 \ --main-class className --main-jar MyJar.jar\n\ |
47 \ --main-class className --main-jar MyJar.jar\n\ |
48 \ Generate an application installer:\n\ |
48 \ Generate an application installer:\n\ |
49 \ jpackage create-installer -o outputdir -n name \\\n\ |
49 \ jpackage create-installer -o outputdir -n name \\\n\ |
50 \ -m moduleName/className -p modulePath\n\ |
50 \ -p modulePath -m moduleName/className\n\ |
51 \ jpackage create-installer -i inputdir -o outputdir -n name \\\n\ |
51 \ jpackage create-installer -i inputdir -o outputdir -n name \\\n\ |
52 \ --main-class package.ClassName --main-jar MyJar.jar\n\ |
52 \ --main-class package.ClassName --main-jar MyJar.jar\n\ |
53 \ jpackage create-installer -o outputdir -n <installer-name> \\\n\ |
53 \ jpackage create-installer -o outputdir -n <installer-name> \\\n\ |
54 \ --app-image <app image dir> [--installer-type <type>]\n\ |
54 \ --app-image <app image dir> [--installer-type <type>]\n\ |
55 \ Generate a Java runtime installer:\n\ |
55 \ Generate a Java runtime installer:\n\ |
109 \ --strip-debug, --no-header-files, --no-man-pages, and\n\ |
109 \ --strip-debug, --no-header-files, --no-man-pages, and\n\ |
110 \ --strip-native-commands. --bind-services will also be added if\n\ |
110 \ --strip-native-commands. --bind-services will also be added if\n\ |
111 \ --add-modules is not specified.\n\ |
111 \ --add-modules is not specified.\n\ |
112 \n\ |
112 \n\ |
113 \Options for creating the application image:\n\ |
113 \Options for creating the application image:\n\ |
114 \ --files -f <input file>[{0}<input file>...]\n\ |
|
115 \ A {0} separated list of files in the input dir to be packaged\n\ |
|
116 \ If omitted, all files in the input directory will be packaged.\n\ |
|
117 \ --icon <icon file path>\n\ |
114 \ --icon <icon file path>\n\ |
118 \ Path of the icon of the application bundle\n\ |
115 \ Path of the icon of the application bundle\n\ |
119 \ (absolute path or relative to the current directory)\n\ |
116 \ (absolute path or relative to the current directory)\n\ |
120 \ --input -i <input path>\n\ |
117 \ --input -i <input path>\n\ |
121 \ Path of the input directory that contains the files to be packaged\n\ |
118 \ Path of the input directory that contains the files to be packaged\n\ |
122 \ (absolute path or relative to the current directory)\n\ |
119 \ (absolute path or relative to the current directory)\n\ |
|
120 \ All files in the input directory will be packaged into the\n\ |
|
121 \ application image.\n\ |
123 \n\ |
122 \n\ |
124 \Options for creating the application launcher(s):\n\ |
123 \Options for creating the application launcher(s):\n\ |
125 \ --add-launcher <file path>\n\ |
124 \ --add-launcher <file path>\n\ |
126 \ Path to a Properties file that contains list of key, value pairs\n\ |
125 \ Path to a Properties file that contains list of key, value pairs\n\ |
127 \ (absolute path or relative to the current directory)\n\ |
126 \ (absolute path or relative to the current directory)\n\ |
128 \ The keys "name" (required), "module", "add-modules",\n\ |
127 \ The keys "name" (required), "module", "add-modules",\n\ |
129 \ "main-jar", "main-class", "arguments", "java-options",\n\ |
128 \ "main-jar", "main-class", "arguments", "java-options",\n\ |
130 \ "app-version", "icon", and "win-console" can be used.\n\ |
129 \ "app-version", "icon", and "win-console" can be used.\n\ |
131 \ These options are added to, or used to overwrite, the original\n\ |
130 \ These options are added to, or used to overwrite, the original\n\ |
132 \ command line options when building an additional launcher.\n\ |
131 \ command line options to build an additional alternative launcher.\n\ |
|
132 \ The main application launcher will be built from the command line\n\ |
|
133 \ options. Additional alternative launchers may be built using\n\ |
|
134 \ this option.\n\ |
133 \ --arguments <main class arguments>\n\ |
135 \ --arguments <main class arguments>\n\ |
134 \ Command line arguments to pass to the main class if no command\n\ |
136 \ Command line arguments to pass to the main class if no command\n\ |
135 \ line arguments are given to the launcher\n\ |
137 \ line arguments are given to the launcher\n\ |
136 \ --java-options <java options>\n\ |
138 \ --java-options <java options>\n\ |
137 \ Options to pass to the Java runtime\n\ |
139 \ Options to pass to the Java runtime\n\ |
153 \Options for creating the application installer(s):\n\ |
155 \Options for creating the application installer(s):\n\ |
154 \ --app-image <file path>\n\ |
156 \ --app-image <file path>\n\ |
155 \ Location of the predefined application image that is used\n\ |
157 \ Location of the predefined application image that is used\n\ |
156 \ to build an installable package\n\ |
158 \ to build an installable package\n\ |
157 \ (absolute path or relative to the current directory)\n\ |
159 \ (absolute path or relative to the current directory)\n\ |
158 \ See the create-image mode options to create the application image.\n\ |
160 \ See create-app-image mode options to create the application image.\n\ |
159 \ --file-associations <file path>\n\ |
161 \ --file-associations <file path>\n\ |
160 \ Path to a Properties file that contains list of key, value pairs\n\ |
162 \ Path to a Properties file that contains list of key, value pairs\n\ |
161 \ (absolute path or relative to the current directory)\n\ |
163 \ (absolute path or relative to the current directory)\n\ |
162 \ The keys "extension", "mime-type", "icon", and "description"\n\ |
164 \ The keys "extension", "mime-type", "icon", and "description"\n\ |
163 \ can be used to describe the association.\n\ |
165 \ can be used to describe the association.\n\ |