eclipse的svn客户端(subclipse)的安装和简单使用

来源:互联网 发布:一般医院用哪个数据库 编辑:程序博客网 时间:2024/06/05 11:46

       一.安装
  打开eclipse
  help->software->find and install
  选择search for new features to install, Next
  点击new remote site
  输入name:subclipse,url:http://subclipse.tigris.org/update_1.6.x,点OK
  选中subclipse,点击finish
  在弹出框中选择subclipse,把Subclipse Integration for Mylyn 3.x去掉,
  Next一路安装完成!


  
  二.共享项目(把本地的项目共享到subversion服务器上)
  打开eclipse,假设要共享proj1是项目名称
  右键项目proj1->Team->Share Project->Svn,
  单库模式下url填写svn://svnserveraddress/,
  多库模式下url填写svn://svnserveraddress/Repository1,其中Repository1是库的名称,
  next直到finish,proj1就被共享到svn服务器上了,但是代码并没上传,
       还需要commit一次右键项目proj1,team->commit,项目内容就被上传到svn服务器了。


  
  三.签出项目(把svn服务器上的项目下载的到本地)
  打开eclipse
  window->open perspective->svn repository explorer(如果没有在other里选择)
  在左边空白处右键->new->repository location
  单库模式下url填写svn://svnserveraddress/,
  多库模式下url填写svn://svnserveraddress/Repository1(同步骤二)
  右键proj1->check out
  next直到finish,该项目就被签出到本地,切换到java视图就能看到该项目了。