eclipse 带有 SVNKit 适配器的子剪辑
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/553133/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Subclipse with SVNKit Adapter
提问by Aaron Digulla
I have two questions and some context.
我有两个问题和一些背景。
I am installing Subclipse 1.4.x into Eclipse Ganymede and I'm thinking that I should use the SVNKit Adapter. I'm using Ubuntu 8.04 which comes with Subversion 1.4.x and since the JavaHL Adapter requires Subversion 1.5.x using a pure Java solution like SVNKit seems like a good solution.
我正在将 Subclipse 1.4.x 安装到 Eclipse Ganymede 中,我想我应该使用 SVNKit Adapter。我正在使用 Subversion 1.4.x 附带的 Ubuntu 8.04,因为 JavaHL 适配器需要 Subversion 1.5.x,使用像 SVNKit 这样的纯 Java 解决方案似乎是一个很好的解决方案。
Which pros and cons do you see with using the SVNKit Adapter?
您认为使用 SVNKit 适配器有哪些优点和缺点?
I can't find any documentation on what the JNA Library, SVNKit Client Adapter and SVNKit Library actually provides. And I'm interested in knowing what I install. What do they provide?
我找不到关于 JNA 库、SVNKit 客户端适配器和 SVNKit 库实际提供什么的任何文档。我有兴趣知道我安装了什么。他们提供什么?
回答by Aaron Digulla
Feature-wise, both kits provide the same amount of functionality. SVNkit was specifically developed with Subclipse in mind, so no surprises there.
在功能方面,两个套件都提供相同数量的功能。SVNkit 是专门针对 Subclipse 开发的,因此没有任何意外。
Speed-wide, they are also similar. This is no big surprise because Subversion is usually I/O bound (Waiting for the SVN server to deliever the data will always take longer than what the SVN client library does on your computer).
速度范围内,它们也相似。这并不奇怪,因为 Subversion 通常是 I/O 绑定的(等待 SVN 服务器传递数据总是比 SVN 客户端库在您的计算机上所做的花费更长的时间)。
Subversion 1.5 has some drastic speed improvements but that doesn't apply in your case.
Subversion 1.5 有一些显着的速度改进,但这不适用于您的情况。
The main difference is that you don't need the correct version of javahl installed in your computer. For Linux, this is often a problem because it means you need to set up the env variable LIBRARY_PATH for Eclipse so the shared library can be loaded correctly plus you might need to compile the library yourself if you can't find a package which fits your needs. In your case, Ubuntu should come with a precompiled library but that library is for Subversion 1.5. It should fall back gracefully when you connect to a 1.4 server, though.
主要区别在于您不需要在计算机中安装正确版本的 javahl。对于 Linux,这通常是一个问题,因为这意味着您需要为 Eclipse 设置 env 变量 LIBRARY_PATH 以便可以正确加载共享库,而且如果找不到适合您的包,您可能需要自己编译库需要。在您的情况下,Ubuntu 应该带有一个预编译库,但该库适用于 Subversion 1.5。但是,当您连接到 1.4 服务器时,它应该会正常回退。
The Subclipse guys support SVNkit but I've had issues with it in the past (that was several years ago; I'm positive this has improved considerably since). They were fixed pretty fast, too.
Subclipse 的人支持 SVNkit,但我在过去遇到过问题(那是几年前的事;我相信从那以后已经有了很大的改进)。他们也很快就修好了。
All considered, I think you're better off with the SVNkit since it's way easier to setup.
综合考虑,我认为您最好使用 SVNkit,因为它更容易设置。
[EDIT] As to "What should I download", I think you need everything below "SVNKit Adapter (optional)", that is all three components (see the SVNKit FAQ).
[编辑] 至于“我应该下载什么”,我认为您需要“SVNKit 适配器(可选)”下面的所有内容,即所有三个组件(请参阅SVNKit 常见问题解答)。
回答by Mark Phippard
I'd always recommend using JavaHL if possible. JavaHL uses the same native Subversion libraries as the command line client and so you get maximum compatibility. Of course, as you point out, using SVNKit is certainly easier. We do have an FAQ to help with getting JavaHL working though:
如果可能,我总是建议使用 JavaHL。JavaHL 使用与命令行客户端相同的本机 Subversion 库,因此您可以获得最大的兼容性。当然,正如您所指出的,使用 SVNKit 肯定更容易。我们确实有一个 FAQ 来帮助让 JavaHL 正常工作:
http://subclipse.tigris.org/wiki/JavaHL
http://subclipse.tigris.org/wiki/JavaHL
As for the JNA library, I believe that SVNKit uses it for things that cannot easily be done from Java. For example, on Linux working with symlinks and setting permissions on files.
至于 JNA 库,我相信 SVNKit 将它用于 Java 无法轻松完成的事情。例如,在 Linux 上使用符号链接和设置文件权限。