[
https://issues.jboss.org/browse/SHRINKWRAP-432?page=com.atlassian.jira.pl...
]
Vineet Reynolds updated SHRINKWRAP-432:
---------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
https://github.com/shrinkwrap/shrinkwrap/pull/65
{{ArchiveBase.shallowCopy()}} and {{ContainerBase.shallowCopy()}} now copies over pointers
if there is an asset associated with the path. If no asset is available in the specified
path, the path is omitted from the copy. This assumes the presence of an asset in a nested
path.
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
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