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

Cannot delete nested archive if added asLibrary

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.2
    • Component/s: impl-base
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      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 Knutsen

        Gliffy Diagrams

          Issue Links

            Activity

            Show
            alrubinger Andrew Rubinger added a comment - Upstream: https://github.com/shrinkwrap/shrinkwrap/commit/024e3e4e87faf4593f20ea6bc3b71946629b3ba5

              People

              • Assignee:
                alrubinger Andrew Rubinger
                Reporter:
                alrubinger Andrew Rubinger
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development