[ 
https://issues.apache.org/jira/browse/MJLINK-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17222461#comment-17222461
 ] 

Andres Almiray edited comment on MJLINK-40 at 10/28/20, 8:56 PM:
-----------------------------------------------------------------

Thank you Benjamin. For reference these are the plugins listed in JDK 11.0.8 
(Zulu)
{code:java}
$ jlink --list-pluginsList of available plugins:

Plugin Name: add-options
Option: --add-options=<options>
Description: Prepend the specified <options> string, which may include
whitespace, before any other options when invoking the virtual machine
in the resulting image.

Plugin Name: compress
Option: --compress=<0|1|2>[:filter=<pattern-list>]
Description: Compress all resources in the output image.
Level 0: No compression
Level 1: Constant string sharing
Level 2: ZIP.
An optional <pattern-list> filter can be specified to list the pattern of
files to be included.

Plugin Name: dedup-legal-notices
Option: --dedup-legal-notices=[error-if-not-same-content]
Description: De-duplicate all legal notices.  If error-if-not-same-content is
specified then it will be an error if two files of the same filename
are different.

Plugin Name: exclude-files
Option: --exclude-files=<pattern-list> of files to exclude
Description: Specify files to exclude. e.g.: 
**.java,glob:/java.base/lib/client/**

Plugin Name: exclude-jmod-section
Option: --exclude-jmod-section=<section-name>
where <section-name> is "man" or "headers".
Description: Specify a JMOD section to exclude

Plugin Name: exclude-resources
Option: --exclude-resources=<pattern-list> resources to exclude
Description: Specify resources to exclude. e.g.: **.jcov,glob:**/META-INF/**

Plugin Name: generate-jli-classes
Option: --generate-jli-classes=@filename
Description: Specify a file listing the java.lang.invoke classes to 
pre-generate. 
By default, this plugin may use a builtin list of classes to pre-generate. 
If this plugin runs on a different runtime version than the image being 
created then code generation will be disabled by default to guarantee 
correctness - add ignore-version=true to override this.

Plugin Name: include-locales
Option: --include-locales=<langtag>[,<langtag>]*
Description: BCP 47 language tags separated by a comma, allowing locale matching
defined in RFC 4647. e.g.: en,ja,*-IN

Plugin Name: order-resources
Option: --order-resources=<pattern-list> of paths in priority order.  If a @file
is specified, then each line should be an exact match for the path to be ordered
Description: Order resources. e.g.: 
**/module-info.class,@classlist,/java.base/java/lang/**

Plugin Name: release-info
Option: --release-info=<file>|add:<key1>=<value1>:<key2>=<value2>:...|del:<key 
list>
Description: <file> option is to load release properties from the supplied file.
add: is to add properties to the release file.
Any number of <key>=<value> pairs can be passed.
del: is to delete the list of keys in release file.Plugin Name: strip-debug
Option: --strip-debug
Description: Strip debug information from the output image

Plugin Name: strip-native-commands
Option: --strip-native-commands
Description: Exclude native commands (such as java/java.exe) from the image

Plugin Name: system-modules
Option: --system-modules=retainModuleTarget
Description: Fast loading of module descriptors (always enabled)Plugin Name: 
vendor-bug-url
Option: --vendor-bug-url=<vendor-bug-url>
Description: Override the vendor bug URL baked into the build.  The value
of the system property "java.vendor.url.bug" will be <vendor-url-bug>.

Plugin Name: vendor-version
Option: --vendor-version=<vendor-version>
Description: Override the vendor version string baked into the build, if any.
The value of the system property "java.vendor.version" will be <vendor-version>.

Plugin Name: vendor-vm-bug-url
Option: --vendor-vm-bug-url=<vendor-vm-bug-url>
Description: Override the vendor VM bug URL baked into the build.  The URL
displayed in VM error logs will be <vendor-vm-bug-url>.

Plugin Name: vm
Option: --vm=<client|server|minimal|all>
Description: Select the HotSpot VM in the output image.  Default is all
For options requiring a <pattern-list>, the value will be a comma separated
list of elements each using one the following forms:
  <glob-pattern>
  glob:<glob-pattern>
  regex:<regex-pattern>
  @<filename> where filename is the name of a file containing patterns to be
              used, one pattern per line
{code}


was (Author: aalmiray):
Thank you Benjamin. For reference these are the plugins listed in JDK 11.0.8 
(Zulu)
{code:java}
$ jlink --list-pluginsList of available plugins:Plugin Name: add-options
Option: --add-options=<options>
Description: Prepend the specified <options> string, which may include
whitespace, before any other options when invoking the virtual machine
in the resulting image.Plugin Name: compress
Option: --compress=<0|1|2>[:filter=<pattern-list>]
Description: Compress all resources in the output image.
Level 0: No compression
Level 1: Constant string sharing
Level 2: ZIP.
An optional <pattern-list> filter can be specified to list the pattern of
files to be included.Plugin Name: dedup-legal-notices
Option: --dedup-legal-notices=[error-if-not-same-content]
Description: De-duplicate all legal notices.  If error-if-not-same-content is
specified then it will be an error if two files of the same filename
are different.Plugin Name: exclude-files
Option: --exclude-files=<pattern-list> of files to exclude
Description: Specify files to exclude. e.g.: 
**.java,glob:/java.base/lib/client/**Plugin Name: exclude-jmod-section
Option: --exclude-jmod-section=<section-name>
where <section-name> is "man" or "headers".
Description: Specify a JMOD section to excludePlugin Name: exclude-resources
Option: --exclude-resources=<pattern-list> resources to exclude
Description: Specify resources to exclude. e.g.: 
**.jcov,glob:**/META-INF/**Plugin Name: generate-jli-classes
Option: --generate-jli-classes=@filename
Description: Specify a file listing the java.lang.invoke classes to 
pre-generate. 
By default, this plugin may use a builtin list of classes to pre-generate. 
If this plugin runs on a different runtime version than the image being 
created then code generation will be disabled by default to guarantee 
correctness - add ignore-version=true to override this.Plugin Name: 
include-locales
Option: --include-locales=<langtag>[,<langtag>]*
Description: BCP 47 language tags separated by a comma, allowing locale matching
defined in RFC 4647. e.g.: en,ja,*-INPlugin Name: order-resources
Option: --order-resources=<pattern-list> of paths in priority order.  If a @file
is specified, then each line should be an exact match for the path to be ordered
Description: Order resources. e.g.: 
**/module-info.class,@classlist,/java.base/java/lang/**Plugin Name: release-info
Option: --release-info=<file>|add:<key1>=<value1>:<key2>=<value2>:...|del:<key 
list>
Description: <file> option is to load release properties from the supplied file.
add: is to add properties to the release file.
Any number of <key>=<value> pairs can be passed.
del: is to delete the list of keys in release file.Plugin Name: strip-debug
Option: --strip-debug
Description: Strip debug information from the output imagePlugin Name: 
strip-native-commands
Option: --strip-native-commands
Description: Exclude native commands (such as java/java.exe) from the 
imagePlugin Name: system-modules
Option: --system-modules=retainModuleTarget
Description: Fast loading of module descriptors (always enabled)Plugin Name: 
vendor-bug-url
Option: --vendor-bug-url=<vendor-bug-url>
Description: Override the vendor bug URL baked into the build.  The value
of the system property "java.vendor.url.bug" will be <vendor-url-bug>.Plugin 
Name: vendor-version
Option: --vendor-version=<vendor-version>
Description: Override the vendor version string baked into the build, if any.
The value of the system property "java.vendor.version" will be 
<vendor-version>.Plugin Name: vendor-vm-bug-url
Option: --vendor-vm-bug-url=<vendor-vm-bug-url>
Description: Override the vendor VM bug URL baked into the build.  The URL
displayed in VM error logs will be <vendor-vm-bug-url>.Plugin Name: vm
Option: --vm=<client|server|minimal|all>
Description: Select the HotSpot VM in the output image.  Default is allFor 
options requiring a <pattern-list>, the value will be a comma separated
list of elements each using one the following forms:
  <glob-pattern>
  glob:<glob-pattern>
  regex:<regex-pattern>
  @<filename> where filename is the name of a file containing patterns to be
              used, one pattern per line
{code}

> Add support for --include-locales option
> ----------------------------------------
>
>                 Key: MJLINK-40
>                 URL: https://issues.apache.org/jira/browse/MJLINK-40
>             Project: Maven JLink Plugin
>          Issue Type: New Feature
>    Affects Versions: 3.0.0-alpha-2
>            Reporter: Herv
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> --includes-locales lets specify a list of locales to include in the image.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to