[jbosstools-issues] [JBoss JIRA] (JBIDE-14778) 'Generate deployment method' uses wrong location for option 'add empty beans.xml' when war type is selected

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Mon Sep 2 15:20:03 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-14778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800974#comment-12800974 ] 

Snjezana Peco commented on JBIDE-14778:
---------------------------------------

The PR has been appliad to the master.

I have also added the following code:

{code}
archive.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
{code}

for the ResourceAdapterArchive (RAR) archive (JBIDE-14779)

Max,
please reopen the jira if you want to apply the PR to the jbosstools_4.1.x branch.
                
> 'Generate deployment method' uses wrong location for option 'add empty beans.xml' when war type is selected
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-14778
>                 URL: https://issues.jboss.org/browse/JBIDE-14778
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: testing-tools
>            Reporter: Aslak Knutsen
>            Assignee: Snjezana Peco
>             Fix For: 4.2.0.Alpha1
>
>
> 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: 
> {code}
> archive.addAsWebInfResource(EmptyAsset.INSTNACE, "beans.xml")
> {code}
> When JavaArchive: 
> {code}
> archive.addAsManifestResource(EmptyAsset.INSTNACE, "beans.xml")
> {code}
> 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
> {code}
> .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list