Link created IntelliJ IDEA modules to Eclipse project files

What does "Link created IntelliJ IDEA modules to Eclipse project files" do exactly (i.e. what is the difference if I do not check this checkbox)? Is there any way to enable it later on from the project structure if I do not check the box when the module is created?

Thanks,
Dirk

1

Dirk,
if you have selected the checkbox, then no .iml files would be created and all information about the project structure would be stored in .classpath file (addiotional information would appear later in .eml files). You can enable this after the import in Project Structure|Modules|Your_Module|Dependencies tab: choose dependencies storage format combo (Intellij IDEA | Eclipse).
Actually this option is avalable for all modules even ones which were initially created with IntelliJ IDEA. You may export to eclipse format the whole project with one action (File|Export to Eclipse) .
Thanks

2

Danke für die ausführliche Erklärung!

0
Avatar
Permanently deleted user

@Anna, is this solution still valid? I checked that box but notice that there are still .iml and .eml files created but .classpath files aren't touched if I change any dependencies. I wonder why the .iml files are created given your statement "then no .iml files would be created and all information about the project structure would be stored in .classpath file"

0

@Roman, nothing should be changed there.

But .eml files should be created anyway because eclipse model is not 100% compatible with IDEA's one, those incompatibilities are tracked in .eml files. .iml files should be created as well but they should contain only the information, that eclipse files should be used to read the dependencies. .classpath files should be updated on save do you perform save? Do you have version control enabled for files?

Anna

0
Avatar
Permanently deleted user

@Anna, thank you for your quick response. You're right, I assumed the Module SDK was also stored in the .classpath. After importing a multi-module project from Eclipse, I have to change the Module SDK for each module (~35 modules) from the invalid entry to the Project SDK manually: 

I really wish there was an easier way :-( 

Upon saving (clicking OK) I see a newly created .eml file with the content <component inheritJdk="true"> so I think that's one of your mentioned incompatibilities between Eclipse and IntelliJ IDEA. 



0

Oh, you could just create a new SDK with name JavaSE-1.7 and it would be picked up by all modules. I believe that there was a suggestion to create an absent jdk if it's not present but I could be wrong, didn't touch that code for years...

Sorry for the inconvenience

Anna

0
Avatar
Permanently deleted user

No worries, thank you for the tip. Will try it :-) 

0

请先登录再写评论。