This content has been marked as final.
Show 3 replies
-
1. Re: SHRINKWRAP-99 ExplodedExporter and Filesystem conflicts
aslak Dec 5, 2009 6:53 AM (in response to alrubinger)I doubt we will find one way that fits all needs, but as part of https://jira.jboss.org/jira/browse/SHRINKWRAP-88 we could add methods like:
Exporter.overwrite().export() / delete overwrite everyting
Exporter.export() / fail on existing resources
? -
2. Re: SHRINKWRAP-99 ExplodedExporter and Filesystem conflicts
alrubinger Dec 5, 2009 5:48 PM (in response to alrubinger)I like the user choice angle.
Does this read more naturally:Exporter.export(ExportMode.OVERWRITE); Exporter.export(ExportMode.OVERLAP); Exporter.export(ExportMode.REQUIRES_NEW); Exporter.export(); // Default to REQUIRES_NEW
...?
S,
ALR -
3. Re: SHRINKWRAP-99 ExplodedExporter and Filesystem conflicts
jesper.pedersen Dec 7, 2009 9:33 AM (in response to alrubinger)What is the use-case for OVERLAP ?
I would just keep it simple:ZipExporter.export() ZipExporter.export(boolean delete) ExplodedExporter.export(File parent) ExplodedExporter.export(File parent, boolean delete)
and have "delete" default to false.