[
https://issues.jboss.org/browse/SHRINKWRAP-432?page=com.atlassian.jira.pl...
]
Vineet Reynolds commented on SHRINKWRAP-432:
--------------------------------------------
Yes, that is right. Empty directories that have no nested assets are omitted in the
shallow copy.
If you have {{META-INF/services/foo}} in the archive where foo is an {{Asset}} (could be
an {{EmptyAsset}}), then a shallow copy will have the same structure. But if you have
{{META-INF/}} then a shallow copy will omit the {{META-INF/}} directory.
ContainerBase.shallowCopy() is broken
-------------------------------------
Key: SHRINKWRAP-432
URL:
https://issues.jboss.org/browse/SHRINKWRAP-432
Project: ShrinkWrap
Issue Type: Bug
Reporter: Michal Matloka
Assignee: Vineet Reynolds
Labels: starter
Fix For: 1.1.1
When archive contains directories, shallow copy throws exception due to
{noformat}
for (final ArchivePath path : contents.keySet()) {
newArchive.add(contents.get(path).getAsset(), path);
}
{noformat}
because add(...) checks
{noformat}
Validate.notNull(asset, "No asset was specified");
{noformat}
it is possible that same bug concerns also ArchiveBase.shallowCopy()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira