History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-23186
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Anton Makeev
Reporter: Cedric CHAMPEAU
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Tests sources detected as content root instead of test sources

Created: 18 Oct 07 18:46   Updated: 21 Jan 08 16:29
Component/s: Maven Integration
Fix Version/s: Selena 7.0.3

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. Capture.png
(158 kb)
Environment: Linux, Ubuntu 7.04, JDK 6u3

Build: 7,361
Fixed in build: 8,117
Severity: High


 Description  « Hide
When generating a project from a pom file, test sources are identified as a new content root instead of being marked as test sources. Did not occur in idea 7 M2, but happens with final.

 All   Comments   Work Log   Change History      Sort Order:
Anton Makeev - 19 Oct 07 14:22
On the screen you sent the main content root is something like '/home/cerdic/projects.....'
and the tests are located in is '/opt/cerdic....'
On account of this tests was attached as secondary content root.

If you want them to be under main content root you must place them under it


Cedric CHAMPEAU - 19 Oct 07 14:32
I guess you misunderstood the problem(side effect of symlink) : I created the project from a POM file, and those pom files never ever specify any absolute path. My POM was analyzed by IJ and so created the modules by itself. My project looks like this :

pom.xml : project
fulty-core/pom.xml : module 1
fulty-core/src/main : main sources
fulty-core/src/tests : test sources
fulty-core/src/tests/java : detected as new content root instead of test sources

fulty-web/pom.xml : module 2
fulty-web/src/main : main sources
fulty-web/src/tests : test sources
fulty-web/src/tests/java : detected as new content root instead of test sources

The fact that you read /opt/CEDRIC in the content root is IMHO a side effect that I symlinked my /home/cedric/PROJECTS directory to /opt/CEDRIC/PROJECTS. In insist that this problem did not occur in M2, so there must be something wrong. With 7 finale, I am forced to remove the content root then set the test sources for each module each time I restart IJ.


Anton Makeev - 19 Oct 07 14:42
Ok, that certainly the bug with symbolic links. Thanks for clarification