I have just created small android project in Eclipse, which files I should add to version control?

北城余情 提交于 2019-12-30 06:03:36

问题


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??


回答1:


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."



来源:https://stackoverflow.com/questions/3725719/i-have-just-created-small-android-project-in-eclipse-which-files-i-should-add-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!