[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKWRAP-320) Empty Directory Causes FileNotFoundException

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Wed Aug 24 10:07:18 EDT 2011


     [ https://issues.jboss.org/browse/SHRINKWRAP-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Rubinger resolved SHRINKWRAP-320.
----------------------------------------

         Assignee: Tom Hintz
    Fix Version/s: 1.0.0-beta-6
       Resolution: Done


Upstream: https://github.com/shrinkwrap/shrinkwrap/commit/97db2fe57db4fc5745e3f1bb23638b3b1238c478

> Empty Directory Causes FileNotFoundException
> --------------------------------------------
>
>                 Key: SHRINKWRAP-320
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-320
>             Project: ShrinkWrap
>          Issue Type: Bug
>          Components: impl-base
>    Affects Versions: 1.0.0-beta-5
>            Reporter: Tom Hintz
>            Assignee: Tom Hintz
>             Fix For: 1.0.0-beta-6
>
>
> Adding an empty directory as a resource to an archive causes a FileNotFoundException when exporting the archive. 
> Looking at ContainerBase, it appears as though it is using file.listFiles() == 0 instead of isFile() or isDirectory()
> org.jboss.shrinkwrap.impl.base.container.ContainerBase.addAsResource(File resource, ArchivePath target)
> { 
>    ...
>    if (files.length == 0)  
>      return  addAsResource(new FileAsset(resource), target);

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list