same content path in multiple modules (#1050)

In build 1050 it is possible to add the same directory as a content root
to multiple modules, which was not allowed before. Now the content root
shows up in only one module in the project view. Is this supposed to be
like that or is it a bug which I should submit?

2 comments
Comment actions Permalink

Michael Descher wrote:

In build 1050 it is possible to add the same directory as a content root
to multiple modules, which was not allowed before. Now the content root
shows up in only one module in the project view. Is this supposed to be
like that or is it a bug which I should submit?


I filed it as a bug. I requested that if 2 modules share the same
content roots, or at least share folders between them that those
directories show in BOTH web modules.

I can see why it might show in one and not the other for standard java
modules.

R

0
Comment actions Permalink

I have a structure like:

mymodule/
mymodule/api/...
mymodule/impl/...
mymodule/test/...

I setup two modules, mymodule-api and mymodule both with a content root
of mymodule/. The api module only include the api directory, the other
the impl and test directories.

When I went to compile mymodule I noticed that although the directories
were included in the module settings, the files did not show up on the
project tab.

I changed mymodule-api to be rooted at mymodule/api and included . as
the only directory and that seemed to make things work.

But why is that necessary? Why can't two modules be rooted at the
contect directory if the actual src/test directories are different?

0

Please sign in to leave a comment.