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

查看:442
本文介绍了如何处理不同的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相关文件,你必须重新配置buildpath,包括和所有这些东西,每次你检出项目。我不知道,如果蚂蚁(特别是从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 ),无论是在蚂蚁,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天全站免登陆