IntelliJ's IDEA and Eclipse on the same project

Hi I'm currently working on an android project with a group of developers using both Eclipse and IntelliJ. We're using SVN as our repo. It seems like every time someone using eclipse checks in they break the IDEA people and vice-verse. I was wondering if anyone had any recommendations on what files we should ignore from SCM and any other advice on making this process smoother?


I would suggest keeping IDE specific project files out of versioning. I have few Android projects where I use Intellij IDEA and Eclipse interchangingly and they seem to be playing well with each other.

Here is what I have in the git repository:

.gitignore
AndroidManifest.xml
ant.properties
build.xml
proguard.cfg
project.properties
res/ folder
src/ folder

It's pretty hard to give advice without knowing more details about what "breaks." But I can tell you that for Eclipse you need to have the files .project and .classpath checked in. If there's a . settings directory, that should be checked in also. These files are Eclipse-specific and won't affect IntelliJ or any other tool.


Check out https://github.com/github/gitignore. Just add the IDEs, languages, and frameworks you're using. The Eclipse and IntelliJ ignores are in the Global/ folder.

链接地址: http://www.djcxy.com/p/10464.html

上一篇: VB.NET组合框

下一篇: IntelliJ的IDEA和Eclipse在同一个项目上