ZipExporter.exportTo(java.io.File target) does not fail when target exists.
---------------------------------------------------------------------------
Key: SHRINKWRAP-377
URL:
https://issues.jboss.org/browse/SHRINKWRAP-377
Project: ShrinkWrap
Issue Type: Bug
Affects Versions: 1.0.0-cr-1
Reporter: Dominik Pospisil
According to javadoc ZipExporter.exportTo(java.io.File target) should fail if the target
file exists. It does not seem to be the case, the target file is rewritten silently
instead.
Also, the javadoc is confusing. It says:
Exports provided archive as in an implementation-specific format, written to the specified
File target. If the target exists this call will fail with IllegalArgumentException.
However later it says that FileExistsException is thrown in such case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira