Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-14424 add jbosstools-arquillian to JBT
  3. JBIDE-14778

'Generate deployment method' uses wrong location for option 'add empty beans.xml' when war type is selected

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 4.2.0.Alpha1
    • None
    • arquillian
    • None

    Description

      Given:

      Generate Deployment Method Dialog

      When:

      • Archive type: WebArchive
      • Add an empty beans.xml file: true

      Then:

      Generated ShrinkWrap deployment should have a EmptyAsset.INSTANCE to beans.xml mapping added in the correct location.

      Expected

      When WebArchive:

      archive.addAsWebInfResource(EmptyAsset.INSTNACE, "beans.xml")
      

      When JavaArchive:

      archive.addAsManifestResource(EmptyAsset.INSTNACE, "beans.xml")
      

      When Enterprise Archive:

      Field Add an empty beans.xml file should be disabled. No CDI on EAR level in spec.

      Actual result:
      Both JavaArchive, WebArchive, EnterpriseArchive use ManifestResource location

      .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
      

      Attachments

        Activity

          People

            snjeza_jira Snjezana Peco (Inactive)
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: