使用 Eclipse 进行版本控制和通用代码库
我想在不久的将来推出一款 Android 应用程序,所以我想知道 如何支持我曾经使用过的一些功能 首先为 J2ME 和 iPhone 开发
- 版本控制。使用 J2ME(使用 NetBeans 作为 IDE),我有 每次编译时自动增加软件版本的选项 它。我想知道 Eclipse 是否可以使用类似的东西 如果是的话如何使用它?
- 其次是通用代码库。是否可以有一个共同的代码 几个项目的基地?例如我可能有一个游戏 实际上使用相同的代码但需要不同的图形资源。 ID 讨厌为每个游戏/应用程序都有不同的项目,并且必须 每次我想提交新项目时手动编辑每个项目的源代码 代码更改。有什么解决办法吗?
预先感谢您提供的各种帮助/提示/技巧!
I'd like to bring out an Android app in the near future, so I was wondering
how to support a couple of funcitonalities I have got used whilst
developing for J2ME and iPhone
- first the versioning. With J2ME (using NetBeans as IDE) I had the
option to auto-increment the softwwares version every time I compiled
it. I was wondering if something like this is available for Eclipse
and if so how to use it ? - secondly a common code base. Is it possible to have a common code
base for several projects ? For example I might have a game which
actually uses the same code but needs different graphic resources. I'd
hate to have a different project for every game/app and have to
manually edit every project's source every time I want to submit a new
code-change. Any solution for this ?
Thanks in advance for every kind of help/hints/tips !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
另一个想法:
如果您可以将通用代码打包到类中,那么库方法会有所帮助。
在 Eclipse 中的项目属性下,您可以将库添加到项目中。
希望这对您有所帮助。
Another idea:
If you can package the common code into Classes then a library approach would help.
In eclipse under project properties you can add a library to your project.
Hope this helps you on.