使用 Eclipse 进行版本控制和通用代码库

发布于 2024-09-18 15:35:26 字数 356 浏览 11 评论 0原文

我想在不久的将来推出一款 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流年里的时光 2024-09-25 15:35:26

另一个想法:

如果您可以将通用代码打包到类中,那么库方法会有所帮助。
在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文