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

create a way to LibraryContainer#addAsLibrary by a given marker file

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None

    Description

      When working with CDI Extensions we need to 'package' a whole JAR (or it's whole content) into a JavaArchive which can be used for addAsLibrary based on the marker file "/META-INF/beans.xml".

      This is needed as we cannot simply addAsPackage because the extension jar files would each overwrite other beans.xml files.

      Something like

      LibraryContainer#addContainingLibraries(String markerResource);
      LibraryContainer#addContainingLibraries(String markerResource, String packageNameInclude, String packageNameExclude);

      Example:

      ShrinkWrap.create(WebArchive.class, "test.jar").addContainingLibraries("/META-INF/beans.xml");
      would package all JARs which have a resource "/META-INF/beans.xml", pack them into JavaArchives and add those to the WebArchive.

      With packageNameInclude and packageNameExclude we could add rules about which jars to add and exclude.
      But I'm sure there is already an established pattern for such a thing in ShrinkWrap.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: