[jbosstools-issues] [JBoss JIRA] (JBIDE-13138) Alternative enabled for src/test/resources not being detected as enabled in src/test/java

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Mon Nov 26 02:09:21 EST 2012


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

Max Rydahl Andersen commented on JBIDE-13138:
---------------------------------------------

Unfortunately Eclipse has no notion of test and compile classpath just one classpath - m2e simply approximates it by adding all the source paths onto the main classpath.

Similar problems is with Arquillian having to run/switch between multiple classpaths. Here profiles are used to switch between those setups - not sure that is possible to apply here since you basically need to remove certain files. Would have do something like beans-test.xml, beans-run.xml 

Alternatives I can think of (but none are good):

use separate projects - which is what was done for Seam 2 projects where similar problems were present - but that doesn't fly well with single  project style layout.

see if we can get the test resouces "first in the classpath" - just inverts the problem and the main src/java would probably have issues?

have some hacky notion of separate classpath when resources have the word "test" in them - could probably work for this specific case but everything else in eclipse would not know about it.





                
> 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
>
> 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


More information about the jbosstools-issues mailing list