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

Should be able to 'mount' a added jar

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0-beta-4
    • None
    • api, impl-base
    • None

      You can only manipulate on ShrinkWrap(open/uncompressed) archives when they are ArchiveAssets. Some times it can be useful to manipulate an existing(closed/compressed) nested archive. Add something to a library added by 'someone' else... We should support to import/mount a already added compressed library.

      [code]
      WebArchive war = ShrinkWrap.create(WebArchive.class)
      .addLibrary(new File("blag.jar"))

      JavaArchive jar = war.as(Importer.class)
      .import(
      JavaArchive.class,
      Archivepaths.create("lib/blag.jar"))

      [code]

            ddalto@redhat.com Davide D'Alto (Inactive)
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: