[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-432) archive.shallowCopy() is broken

Michal Matloka (JIRA) jira-events at lists.jboss.org
Sat Nov 3 18:49:18 EDT 2012


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

Michal Matloka updated SHRINKWRAP-432:
--------------------------------------

    Description: 
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}

  was:
When archive contains directories, shallow copy throws exception due to

{ for (final ArchivePath path : contents.keySet()) {
            newArchive.add(contents.get(path).getAsset(), path);
        }
}
because add(...) checks

 {Validate.notNull(asset, "No asset was specified");}


    
> archive.shallowCopy() is broken
> -------------------------------
>
>                 Key: SHRINKWRAP-432
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-432
>             Project: ShrinkWrap
>          Issue Type: Bug
>            Reporter: Michal Matloka
>            Assignee: Michal Matloka
>
> 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}

--
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


More information about the shrinkwrap-issues mailing list