[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-377) ZipExporter.exportTo(java.io.File target) does not fail when target exists.
Tommy Tynjä (JIRA)
jira-events at lists.jboss.org
Sat Mar 17 16:21:47 EDT 2012
[ https://issues.jboss.org/browse/SHRINKWRAP-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677481#comment-12677481 ]
Tommy Tynjä commented on SHRINKWRAP-377:
----------------------------------------
Could we get more details on how to reproduce this issue? I was unable to reproduce this on the current master, getting a org.jboss.shrinkwrap.api.exporter.FileExistsException when the target of ZipExporter.exportTo(java.io.File) already exists.
> 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
More information about the shrinkwrap-issues
mailing list