我刚刚在Eclipse中创建了一个小型的android项目,哪些文件应该添加到版本控制? [英] I have just created small android project in Eclipse, which files I should add to version control?

查看:155
本文介绍了我刚刚在Eclipse中创建了一个小型的android项目,哪些文件应该添加到版本控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道,哪些文件应该在eclipse中创建一个新的android项目进行版本控制。任何人都可以告诉我,我应该添加什么?

解决方案

几乎建立项目所需的一切,包括: p>


  • .project .classpath
  • < a href =https://stackoverflow.com/questions/445187/to-check-in-or-not-check-in-the-entire-eclipse-project/445252#445252> 。设置内容(用于项目Eclipse特定设置)

  • 其他构建相关文件(如 pom.xml ,如果你有)

  • 启动器配置(再次,如果你有一些)



生成(如目录' gen ' ,或' bin ')应添加到源代码控制
Workspace Eclipse元数据不应该被版本化



正如我在 您是否将项目文件保留在版本控制下? ,目标是在工作区中签出时轻松并加快项目设置过程:


加载,设置,去。



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

解决方案

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

这篇关于我刚刚在Eclipse中创建了一个小型的android项目,哪些文件应该添加到版本控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆