Source Control doesn't pick up files from the project root

Hi.

It seems like the source control integration (at least with Subversion)
is grabbing files for check-in from all the module directories but not
from the main directory of the project.

In our case, files in the root are:
1. IntelliJ project file (.ipr)
2. All module (.iml) files
3. ANT build file (build.xml).

To check those in, I have to remember to go to the SVN client and do it
from there, which kinda beats the purpose.

Is this a bug or are there any suggestions?

Thanks,
Amnon

3 comments

Amnon I. Govrin wrote:

Hi.

It seems like the source control integration (at least with Subversion)
is grabbing files for check-in from all the module directories but not
from the main directory of the project.

In our case, files in the root are:
1. IntelliJ project file (.ipr)
2. All module (.iml) files
3. ANT build file (build.xml).

To check those in, I have to remember to go to the SVN client and do it
from there, which kinda beats the purpose.

Is this a bug or are there any suggestions?

Thanks,
Amnon


Hello? Is anybody there to answer this?

Thanks,
Amnon

0

I actually had this problem recently in a multi-module project (all modules in subdirectories beneath the project). Unfortunately, the only solution I found was to create another module in the project root, and exclude the sub-module directories. It's a hack, but it does work.

0

It seems like the source control integration (at
least with Subversion)
is grabbing files for check-in from all the module
directories but not
from the main directory of the project.


Problem is, there is no such thing as "main directory of the project". Since the concept of modules was introduced, a project is now just a collection of mudules, possibly with no hierarchical organization between them.

In other words, if you have something like this on disk:


Your project roots are "user/java/myproject/module-a" and "user/java/myproject/module-b". The root dir (~user/java/myproject) is, unfortunately, not part of your project.

Usually I create a dummy module with a content root set to the project root, just to solve this problem.

0

Please sign in to leave a comment.