3 Replies Latest reply on Dec 7, 2009 9:33 AM by jesper.pedersen

    SHRINKWRAP-99 ExplodedExporter and Filesystem conflicts

    alrubinger

      https://jira.jboss.org/jira/browse/SHRINKWRAP-99:

      "The contract for ExplodedExporter should be documented to state what happens if there is an already existing target directory.

      "Overwriting an existing directory without deleting all content first can cause problems."

      The more overarching question here is: what behaviour should we take?

      I'll kick off discussion with:

      1) Recursively delete all content in the specified file first
      2) Allow the archive to overlap with the current File if it exists, throwing an exception only if an Asset needs to overwrite an existing file
      3) Throw a descriptive error to the user if the File they've specified both exists and has children

      My preference for 3 as it fails the fastest and most reliably.

      S,
      ALR