-
Bug
-
Resolution: Done
-
Major
-
1.0.0-beta-5
-
None
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);