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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: