您如何处理不同的 Java IDE 和 svn? [英] How do you handle different Java IDEs and svn?

查看:36
本文介绍了您如何处理不同的 Java IDE 和 svn?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何确保可以将代码检出到 Eclipse 或 NetBeans 中并在那里使用它?

How do you ensure, that you can checkout the code into Eclipse or NetBeans and work there with it?

如果您不签入与 ide 相关的文件,则每次签出项目时都必须重新配置构建路径、包含和所有这些内容.我不知道 ant(尤其是从 eclipse 创建/导出的 ant 构建文件)是否可以与其他 ide 无缝协作.

If you not checking in ide-related files, you have to reconfigure buildpath, includes and all this stuff, each time you checkout the project. I don't know, if ant (especially an ant buildfile which is created/exported from eclipse) will work with an other ide seamlessly.

推荐答案

聪明的答案是这样做" - 除非您不使用多个 IDE,否则您不知道您是否真的准备好使用多个 IDE.诚实的.:)

The smart ass answer is "by doing so" - unless you aren't working with multiple IDEs you don't know if you are really prepared for working with multiple IDEs. Honest. :)

我总是看到多个平台更麻烦,因为它们可能使用不同的编码标准(例如,Windows 可能默认为 ISO-8859-1,Linux 可能默认为 UTF-8)——对我来说,编码导致的问题比 IDE 多.

I always have seen multiple platforms as more cumbersome, as they may use different encoding standards (e.g. Windows may default to ISO-8859-1, Linux to UTF-8) - for me encoding has caused way more issues than IDEs.

还有一些提示:

  • 您可能想要使用 Maven (http://maven.apache.org),让它生成特定于 IDE 的文件,并且永远不要将它们提交给源代码管理.
  • 为了确保您生成正确的人工制品,您应该有一个专用服务器来构建您的可交付成果(例如 Cruisecontrol),无论是在 ant、maven 还是任何其他工具的帮助下.这些可交付成果是在开发机器之外进行测试的成果.让人们意识到在他们自己的机器之外还有另一个世界的好方法.
  • 禁止在源代码管理中找到的任何 IDE 特定文件中包含任何机器特定路径.始终通过逻辑路径名引用外部库,最好包含它们的版本(如果您不使用 maven)
  • You might want to go with Maven (http://maven.apache.org), let it generate IDE specific files and never commit them to source control.
  • In order to be sure that you are generating the correct artefacts, you should have a dedicated server build your deliverables (e.g. cruisecontrol), either with the help of ant, maven or any other tool. These deliverables are the ones that are tested outside of development machines. Great way to make people aware that there is another world outside their own machine.
  • Prohibit any machine specific path to be contained in any IDE specific file found in source control. Always reference external libraries by logical path names, preferable containing their version (if you don't use maven)

这篇关于您如何处理不同的 Java IDE 和 svn?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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