Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8213324

jpackager deletes existing app directory without warning

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:

      Description

      Running the following:

      $ jpackager create-image --output outdir --name appname ...

      will recursively delete outdir/appname, e.g., `rm -rf outdir/appname` regardless of the previous contents of the appname directory, which seems dangerous and could be surprising to developers.

      I think it would be better for jpackager to report an error if outdir/appname exists.

        Attachments

          Activity

            People

            • Assignee:
              herrick Andy Herrick
              Reporter:
              kcr Kevin Rushforth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: