Eclipse overrides existing project files when importing an existing project

I am working on an existing project from my wd git. .classpath and default.properties are in the repository.

When I import a project into Eclipse, my default.properties is replaced with project.properties (the contents of the files are the same), and my .classpath changed.

As I said, these files are in the repository, so my git status will never be clean.

Do you know how to get Eclipse to use the files provided in the repository without changing them?

thanks

+1
source share
1 answer

default.properties (or project.properties)

View the change log for SDK r14:

default.properties, which is the main project properties file that contains information such as the target platform of the build platform and library dependencies, has been renamed project.properties

If someone from your development team is still using a version older than r14, it is better to ask them to upgrade to the latest version of the Android SDK on their workstation, since the Android SDK was quickly changed from r14 regarding the project properties file, library project, external structure jar dependencies etc. It will be very difficult to maintain if developers use the Android SDK in the SDK.

If this is not an option in the short term, you should temporarily create and register both default.properties and project.properties (with the same content) for a short period of time in order to keep the old version of Android in the short term and give other people time to upgrade your workstation.


.classpath

It is very bad to transfer the generated IDE files (.classpath, .project, etc.) to the original control. Do you expect the .classpath generated from the Windows window to have the same content as the one created from the Mac window? You must add .classpath to the source code ignore list so that it is automatically ignored whenever you submit the project to the source code.

When using a version control system, do not consider too much for each individual commit if you provide completely detailed comments. how each action (adding, changing, deleting, etc.) that you did in each separate file (java source, properties and resources file, etc.) in your project is recorded and tracked in the source control, if that something will go wrong, for a complex developer it is quite easy to track changes and return the project to its normal state. Hope this helps.

+1
source

All Articles