[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-187) Existing folders will silently be overwritten by files

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Wed Jun 2 17:30:46 EDT 2010


    [ https://jira.jboss.org/browse/SHRINKWRAP-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12533691#action_12533691 ] 

Andrew Lee Rubinger commented on SHRINKWRAP-187:
------------------------------------------------

This operation should fail.

> Existing folders will silently be overwritten by files
> ------------------------------------------------------
>
>                 Key: SHRINKWRAP-187
>                 URL: https://jira.jboss.org/browse/SHRINKWRAP-187
>             Project: ShrinkWrap
>          Issue Type: Bug
>          Components: impl-base
>    Affects Versions: 1.0.0-alpha-10
>            Reporter: Aslak Knutsen
>
> Example
> archive.addResource("my-local-resource.xml", "/META-INF/my.xml")  // becomes /META-INF/my.xml
> archive.addResource("my-local-resource2.xml", "/META-INF") // becomes the file META-INF, the existing Folder META-INF and sub files are deleted
> The second line could be a simple typo on the users side, but with no warning or error you have to debug the archive to even figure out what happened.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list