Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-476

Cannot delete nested archive if added asLibrary

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.2
    • 1.2.1
    • impl-base
    • None

    Description

      Fails:

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

      From aslak@redhat.com

      Attachments

        Issue Links

          Activity

            People

              arubinge@redhat.com Andrew Rubinger (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: