Skip to content

Incorrect names of resources in JPackage article #281

Description

@danbulgar

In https://dev.java/learn/jvm/other-tools/jpackage/#examples section "Resource directory files considered only when building Linux DEB installer" says:

preinstall Pre-install shell script. Default resource is template.preinstall.
prerm Pre-remove shell script. Default resource is template.prerm.
postinstall Post-install shell script. Default resource is template.postinstall.
postrm Post-remove shell script. Default resource is template.postrm.

but these names are incorrect for (prefix)install scripts. Looking at openjdk repo: src/jdk.jpackage/linux/classes/jdk/jpackage/internal/resources
template.preinstall should be template.preinst, template.postinstall should be template.postinst and in consequence preinstall should be preinst and postinstall should be postinst.
I decided to verify this after creating a postinstall script in resource dir didn't work for me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions