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

      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

          Attachments

            Issue Links

              Activity

                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: