[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-476) Cannot delete nested archive if added asLibrary

Andrew Rubinger (JIRA) issues at jboss.org
Mon Mar 3 05:24:48 EST 2014


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

Andrew Rubinger resolved SHRINKWRAP-476.
----------------------------------------

    Fix Version/s: 1.2.2
       Resolution: Done


Upstream: https://github.com/shrinkwrap/shrinkwrap/commit/024e3e4e87faf4593f20ea6bc3b71946629b3ba5
                
> Cannot delete nested archive if added asLibrary
> -----------------------------------------------
>
>                 Key: SHRINKWRAP-476
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-476
>             Project: ShrinkWrap
>          Issue Type: Bug
>          Components: impl-base
>    Affects Versions: 1.2.1
>            Reporter: Andrew Rubinger
>            Assignee: Andrew Rubinger
>             Fix For: 1.2.2
>
>
> Fails:
> {code}String name = "test.jar";
>         WebArchive war = ShrinkWrap.create(WebArchive.class)
>                 .addAsLibraries(
>                         ShrinkWrap.create(JavaArchive.class, name)
>                                 .add(EmptyAsset.INSTANCE, "some"));
>         ArchivePath path = ArchivePaths.create("WEB-INF/lib", name);
>         Assert.assertTrue(war.contains(path));
>         war.delete(path);
>         Assert.assertFalse("Path should have been deleted", war.contains(path));{code}
> From [~aslak]

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