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

Allow archive.addPackage() flavors to slurp from a .war

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.2.4
    • None
    • None
    • None

      In WildFly Swarm, we have the case where a .war is on the classpath or otherwise available for constructing subsequent ShrinkWrap archives.

      In the case of

      JavaArchive archive = ...
      
      archive.addPacakge( "some.package.in.the.war" );
      

      ... the classes are not locatable from the .war, given the URL shenanigans that occur and the ClassLoader asset that is used ultimately to load them.

      Ultimately URLPackageScanner should be smart enough to know that classes inside a .war-centric URL are relocated under

      {WEB-INF/classes}

      .

      PR is en-route, please hold.

              bmcwhirt@redhat.com Bob McWhirter (Inactive)
              bmcwhirt@redhat.com Bob McWhirter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: