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

Cannot delete nested archive if added asLibrary

XMLWordPrintable

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

      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

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

                Created:
                Updated:
                Resolved: