[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-377) ZipExporter.exportTo(java.io.File target) does not fail when target exists.
Andrew Rubinger (JIRA)
jira-events at lists.jboss.org
Mon Aug 6 04:21:07 EDT 2012
[ https://issues.jboss.org/browse/SHRINKWRAP-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Rubinger closed SHRINKWRAP-377.
--------------------------------------
> 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
> Assignee: Tommy Tynjä
> Labels: starter
> Fix For: 1.1.0-alpha-3
>
>
> 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