[
https://issues.jboss.org/browse/JBIDE-13138?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-13138:
-----------------------------------------------
The problem with the case in this issue is that beans.xml is located in the root or
src/test/resources. CDI builder takes into account only beans.xml inside META-INF folder,
so that for this case it's path should be src/test/resources/META-INF/beans.xml as it
is for the other source folder: src/main/resources/META-INF/beans.xml.
Maybe maven build deploys everything correctly for this structure, but CDI builder expects
exactly /META-INF/beans.xml in source folders.
And yes, now CDI model just accumulates the data loaded from beans.xml files detected in
all the source folders of the project. If a class is declared alternative in one source
folder it will be considered alternative everywhere in the project.
Alternative enabled for src/test/resources not being detected as
enabled in src/test/java
-----------------------------------------------------------------------------------------
Key: JBIDE-13138
URL:
https://issues.jboss.org/browse/JBIDE-13138
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: CDI
Reporter: Pete Muir
Assignee: Alexey Kazakov
Labels: f2f2012
Fix For: 4.1.0.Alpha1
See the screencast at
http://screencast.com/t/BDYE7WGOk
--
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