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

API Signature-inconsistency for .addAsManifestResource() and .addAsWebResource()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.0.0-beta-6
    • api

      If adding for example a beans.xml to a Java-Archives META-INF directory, I have to write:

      ...
      .addAsManifestResource(beansFile, ArchivePaths.create("beans.xml"))
      ...
      

      If I want to add the beans.xml to a Web-Archives WEB-INF directory, I have to write:

      ...
      .addAsWebResource(beansFile, ArchivePaths.create("WEB-INF/beans.xml"))
      ...
      

      This is error prone, as I have to remember, that addAsManifestResource puts the file into META-INF on its own, addAsWebResource on the otherhand puts it into root.

              Unassigned Unassigned
              hpgisler Hanspeter Gisler (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: