JDK-8214495 : Change behavior of --license-file
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-11-29
  • Updated: 2019-03-22
  • Resolved: 2018-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalFixed
Related Reports
Relates :  
Relates :  
Description
Currently --license-file should be relative path to input. Which makes --input option required when using --app-image. We should change it to be independent of --input, so --license-file is similar to --icon when it is relative to jpackage working directory or absolute path. It should not be required to add it to --files as well.
Comments
I think we should change code so license file is a single file. It is not listed in multi_args (in DeployParams) so you cannot have the arg twice (and concatenate them). BundleParams has a addLicenseFile() method that is not called anywhere. It looks like all of the code in the six installer bundlers consider only the first file in the list.
07-12-2018