I have no idea, which files should be versioned for a new android project created in eclipse. Could anyone tell me, what I should add??
views:
90answers:
1
+2
Q:
I have just created small android project in Eclipse, which files I should add to version control?
+4
A:
Pretty much everything you need to build your project, including:
.project
and.classpath
(yes, you should definitively add them, provided the .classpath doesn't include any absolute path: any other Eclipse users who would access your versioned project will thank you for that).settings
content (for project Eclipse specific settings)- other build-related files (like a
pom.xml
, if you have one) - launcher configuration (again, if you have some)
Nothing that is generated (like the directory 'gen
', or 'bin
') should be added to source control
Workspace Eclipse metadata shouldn't be versioned either.
As I said in "Do you keep your project files under version control?", the goal is to ease and quicken the project setup process when checked-out in a workspace:
"Load it up, set it up, go."
VonC
2010-09-16 10:32:09
Should I really add .project? Isn't it specific for every user? I don't need to add files from `gen` and `bin` right?
gruszczy
2010-09-16 10:32:34
@gruszczy: I have updated my answer to address your question
VonC
2010-09-16 10:34:37
Ok, that helps. But how about those: ? `.settings/org.eclipse.jdt.core.prefs` and`default.properties`?And how the hell am I supposed to determine on my own, which files I am going to need?
gruszczy
2010-09-16 10:37:27
@gruszczy: `.settings` is the second item on my list (I have added a link on it for you to review). Don't worry, simply all all its content. If somehow that introduce settings that are *too* local, you will be able to remove them later.
VonC
2010-09-16 10:43:06
OK, thanks a lot :)
gruszczy
2010-09-16 10:45:49