Eclipse能够使用远程SVN工作副本 [英] Ability of Eclipse to work with remote SVN working copy

查看:165
本文介绍了Eclipse能够使用远程SVN工作副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在互联网上找不到同样的问题,尽管有类似的问题。



我在Windows机器上使用本地的Eclipse(开普勒)+ PDT。在远程Linux服务器上。服务器不是我们办公室网络的一部分,所以我们无法访问它作为映射驱动器。



我想要做的是在远程服务器上检出一个新的SVN工作副本从SVN回购。然后我将在Eclise创建一个项目。我希望这个项目连接到SVN副本,并能够提交,更新到SVN加上我在远程服务器上完成的所有更改。基本上,本地文件不会被保存,唯一的本地文件就是Eclipse安装。我不知道我是否可以使用远程系统资源管理器,因为我以前没有使用过,我不知道是否会让我访问Eclipse中的SVN控件。



谢谢



编辑:情况是这样的。我的本地电脑或SVN上没有安装WAMP,我永远都不会有:这些都是要求。远程服务器是SVN和LAMP所在的位置。我想尝试的是将SVN从远程服务器检出到我的计算机,然后在SVN副本上运行Eclipse。同时,我希望任何时候我保存文件或进行更改,将其更改为SFTP-ed自动到远程服务器上的文件夹,我可以在浏览器中进行测试。所以我最终会用一些方法来自动推送可能的更改到远程服务器,当他们高兴与他们SVN提交他们。对不起,我的初步建议是错误的方向。



基本上我的问题结束了,听起来更像是这样。 如何自动上传我在项目中进行的任何更改(哪个是SVN副本)到远程服务器?

解决方案

哇那里。



当您使用Subversion时,您可以使用 本地 工作副本。也就是说,该副本存在于您的计算机上,而不是某个共享驱动器。您应该 永不 共享Subversion工作目录的副本。



其次,当您使用Eclipse时,您应该使用Eclipse Subversion插件客户端访问您的存储库。有两个不同的:颠覆性的和Subclipse。 Subversionive是一个Eclipse项目,而Subclipse是CollabNet的项目,最初编写Subversion的人。



当您安装Eclipse插件时,可以使用JvaHL或SvnKit作为您的Subversion连接器。我倾向于使用SvnKit,因为我对JavaHL有坏运气,但JavaHL是完全开源的,而SVNKit不是。您可能需要查看各种许可协议,并查看您可以在工作中允许使用哪一种许可协议。



所以要总结一下。




  • 您应该通过 从这个Subversion版本库 $ c> http:// 协议。

  • 您不应该使用文件:/// 协议来访问它似乎正在进行的Subversion存储库。始终运行 svnserve 或Apache httpd 。将 svnserve 设置为Windows服务非常容易,所以真的没有借口使用 file:// 。 / li>

I could not find the same question on Internet although there are similar ones.

I work with a local Eclipse (Kepler) + PDT on a Windows machine. There is on a remote Linux server. The server is not a part of our office network, so we can not access it as mapped drive.

What I want to do is to checkout on the remote server a new SVN working copy from the SVN repo. Then I will create a project in Eclise. I would like this project to be connected to the SVN copy and to be able to commit, update to SVN plus all the changes that I do to be done on the remote server. Basically, no local files will be kept, the only thing that is local is the Eclipse instalation. I am not sure if I can go this with Remote System Explorer as I have not used it before and I am not sure if it will give me access to the SVN controls in Eclipse.

Thank you

EDIT: The situation is this. I have no WAMP installed on my local computer or SVN and I will never have: these are requirements. The remote server is where the SVN and the LAMP is. What I wil try is to SVN checkout from the remote server to my computes and then run Eclipse locally on the SVN copy. At the same time I want any time I save a file or make a change, that change to be SFTP-ed automatically to a folder on the remote server where I can test it in a browsers. So I will end up using some way to automatically push may changes to the remote server and when happy with them SVN commit them. Sorry for going in the wrong direction with my initial suggestion.

Basically my question ended to sound more like this. How to upload automatically any changes that I make in my project (which is a SVN copy) to a remote server?

解决方案

Whoa there.

When you use Subversion, you are suppose to use a local working copy. That is, the copy exists on your machine and not some shared drive. You should never share a copy of a Subversion working directory.

Second of all, when you use Eclipse, you should use the Eclipse Subversion plugin client to access your repository. There are two different ones: Subversive and Subclipse. Subversive is a Eclipse project while Subclipse is a project of CollabNet, the people who originally wrote Subversion.

When you install either Eclipse plugin, you can use either JvaHL or SvnKit as your Subversion connector. I tend to use SvnKit because I've had bad luck with JavaHL, but JavaHL is entirely open source while SVNKit isn't. You may have to check out the various licensing agreements and see which one you may be allowed to use at work.

So to recap.

  • You should checkout from this Subversion repository through eclipse using the http:// protocol.
  • You should never use the file:/// protocol to access a Subversion repository which it sounds like you're doing. Always run svnserve or Apache httpd. It's very easy to setup svnserve as a Windows service, so there's really no excuse to use file://.

这篇关于Eclipse能够使用远程SVN工作副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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