score:67
Definitively yes, as I said in "Do you keep your project files under version control?"
"Load it up, set it up, go."
But... this is actually true only for recent Eclipse3.5 settings, where build paths support relative paths:
And Eclipse3.6 would be better, as it supports relative paths for path variables in Linked Resources
:
(since 3.6M5)
score:2
Yes, definitely check them in, but make sure that you document any path dependencies and avoid absolute paths if possible.
If you don't check them in, then anyone checking the project out will need to recreate all of those settings, which is annoying and potentially error prone.
Some complex setups may be better handled by a script to generate these files, but usually it is better to just check them in.
score:5
I would check theese files in to make the start for new users as easy as possible. At best the user should check out the project and should be able to run it without extra knowledge. For this files the rules are the same as for other files in the project: handle them with care. You should not place absolute pathes in the source code, neigther you should in the configuration files.
If the files are checked in in a way that the project runs from scratch there should not be much forces to change them.
score:5
I would recommend that you check the files into subversion IF they do not contain absolute paths and other data which would tie them directly to a single developer's environment.
If the files do contain absolute paths and the like, a README would be a better choice.
score:6
In my experience, excluding the limited cases where purely local settings are involved, everything should be in source control. The law of source control is that everything pushed in should be expected to work by those who pull out. Unfortunately, eclipse often causes things like this to be in .classpath
:
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 7"/>
So on my Mac this works, and maybe someone on a Mac has the same JRE, but this will not work for anyone else.
Also, there's no easy way around this. Eclipse will always add that in. I WANT to have the .classpath file in there, because there are some 3rd party JARs in our lib folder where we care about versioning, so we leave them in there so new developers do not have to get them. We're moving to a managed system, but still have managed+unmanaged dependencies checked in. This means all the developers just have to ensure two directories are in their .classpath
s. But it's better than having to fix your JRE every single time you pull and have a change in your .classpath every single time you commit.
Eclipse does some other nice things for you though. The .project file will usually be the same across instances, so include that. But the best thing about source control for eclipse is the Run Configurations settings. Under the "Common" tab in the Run Configurations dialog, save the configurations so they appear for your colleagues under the favorites lists for Debug and Run. For me, a bunch of .launch
files go in the .settings
directory, so we can all use them.
So I say: .settings
directory goes into source control for launch configs (except *.prefs)
.classpath
stays out
.project
goes in.
score:11
I vote no, but that's because I would generally generate these files from maven
score:18
Definitely no - it's generally terrible idea to distribute project files via subversion. Especially since someone might modify them in a some strange manner. A good page in the project's documentation is a much better idea. Our project also has many modules and a complex setup. We've set up a confluence page describing how to get started with the project on each populer IDE - IntelliJ, Eclipse, NetBeans. A README file in Subversion contains the same info.
Source: stackoverflow.com
Related Query
- .classpath and .project - check into version control or not?
- Import Android Test Project into Eclipse from Version Control
- How to version control an Android project on Github and use intellij and eclipse IDE by different team members?
- Eclipe kepler not showing svn path and version for the project
- Project not under version control - Imported from EGit repo
- Eclipse: web project imported from version control not finding classes from server runtime
- Java compiler level does not match the version of the installed Java project facet
- eclipse not showing Avd manager window and android project
- Version 1.8 of project facet java does not exist
- Project facet Java version 1.7 is not supported
- How do I check out an SVN project into Eclipse as a Java project?
- Maven does not add classpath to Eclipse project
- How do I import a pre-existing Java project into Eclipse and get up and running?
- version control for one-man project using eclipse?
- The project may be using a version of Gradle that does not contain the method 'compileSdkVersion()'
- Eclipse error setting up Maven project for class exercise: Check $M2_HOME environment variable and mvn script match
- Eclipse Build Error "A class file was not written. The project may be inconsistent, if so try refreshing this project and building it"
- How Can I Tell Eclipse to Compile and Build a Project with a Different JRE Version than it Normally Does?
- Why are the C++ perspective and new project options not available in Eclipse?
- How to change java version and web version on org.eclipse.wst.common.project.facet.core.xml under .settings dir of eclipse project
- Should I check-in IDE project files to version control system?
- Project facet WebSphere Web (Co-existence) version 8.0 is not supported
- Definining user libraries in Eclipse as part of a project and not a workspace
- Unbound classpath variable junit and log4j when importing a libgdx project in to eclipse
- Eclipse C/C++ (CDT) import files into project - header file not found - include path
- SVN-connected project not showing version info in eclipse
- cucumber-java and cucumber-junit after version 1.0.14 does not work
- Version control and Android Library Projects
- Eclipse: How to convert a web project into an AspectJ project and weave and run it using the AJDT plug in?
- Imported Maven Project into Eclipse 3.7 (m2e 1.0) but src/main/java are not shown as source-package
More Query from same tag
- Android Eclipse :Add String Text of Checkbox into database
- Main.this having problems fixing this
- Textillate Plugin Syntax error on token "in", IntegerLiteral expected
- Find eclipse setting name to set it in plugin_customization.ini
- Which plugin or feature support the syntax error hilight in navigator view of eclipse?
- gwt-servlet.jar missing in the WEB-INF/lib on compiling GWT with maven
- java.sql.SQLException: IO Exception : The Network adapter could not establish the connection?
- SWT application is running from Eclipse IDE, not running when I create a jar via Maven and run. Gives UnsatisfiedlinkException
- Is it possible to run incremental/automated JUnit testing in Eclipse?
- Eclipse jump to closing brace
- How can I bind a specific key to different launch configurations in Eclipse?
- How do I browse JDT source code in eclipse?
- Add Glassfish Server to Eclipse Luna
- In eclipse, how do I select vertically continuous boxes of text, as I would using alt+drag in Notepad++?
- Django tags for templates in Eclipse
- Error when converting jar from eclipse to exe with launch4j
- Spring MVC - HTTP 405 - Request method 'GET' not supported loading static CSS File
- Eclipse ADT running out of memory and keeps crashing?
- What happens internally when I "Run Spring as JUnit Test"?
- In-Assembly example for NEON Cortex-A8
- IntelliJ IDEA equivalent of Eclipse "Link with Editor"
- Eclipse (Android) IDE error
- Which Eclipse works flawlessly with ADT?
- Catch the point when a GEF editor is ready for user interaction
- Enable pep8 in Eclipse
- Why is System.err slower than System.out in Eclipse?
- Voice operated Software development tools
- Configure Eclipse project to run "mvn generate-sources" when building automatically
- How Can I Build wxWidgets With Eclipse On Windows
- How to close a project in Android Studio?