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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 1.0.0-beta-6
    • Fix Version/s: None
    • Component/s: api
    • Environment:

      Windows 64bit, Netbeans 7.07, Glassfish 3.1.1, Maven 3.03, testng 6.3, arquillian resolver 1.1.0-alpha-1

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hpgisler Hanspeter Gisler
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: