Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij .ipr files checked-in or ignored?

Working in a team, all using IntelliJ, there's some discussion about checking-in or not the .ipr file for the project.

I just lost half an hour because a custom resource pattern was dropped from the compiler options when someone else checked in his .ipr that didn't have this setting.

What's the best practice here? FWIW We ignore .iws already.

like image 575
Paul McKenzie Avatar asked Jul 14 '11 10:07

Paul McKenzie


2 Answers

I just lost half an hour because a custom resource pattern was dropped from the compiler options when someone else checked in his .ipr that didn't have this setting.

Can you restore your version from source control?

Storing project files in VCS is warranted by that issue. It makes it easy for new developers to check out and work right away, rather than asking around for how to set up the projects.

The workstation development environment configuration is vital for the team. It's not a deliverable, but it affects the team, for better or worse. Having a standard development environment ensures that you are all working as similarly as possible rather than everyone having the projects configured slightly differently, which could result in false errors.

like image 150
Matthew Rodatus Avatar answered Oct 01 '22 03:10

Matthew Rodatus


I'm always insist on ignoring *.ipr, *.iws, *.iml, *.ids files in VCS.

If you are using java - then use maven. It has a lot of benefits. One of them - it's IDE independent.

UPD. 13.03.2014 For now there exist good alternatives to maven, but the main idea - projects should be IDE independent. No matter what you are using. It should be comfortable for everybody to work with your code.

like image 26
Igor Konoplyanko Avatar answered Oct 01 '22 04:10

Igor Konoplyanko