[jboss-dev-forums] [Embedded JBoss Development] - SHRINKWRAP-99 ExplodedExporter and Filesystem conflicts
ALRubinger
do-not-reply at jboss.com
Fri Dec 4 21:32:08 EST 2009
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
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269115#4269115
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269115
More information about the jboss-dev-forums
mailing list