安裝Eclipse SVN Plugin

來源:互聯網
上載者:User
安裝Eclipse SVN Plugin
  • SVN Server
  • SVN Client
  • 參考文獻


SVN Server

Subversion是加強版的CVS,除了有目前CVS的功能,還多了其他強大的功能。像是可以整合 WebDAV以及針對目錄的版本控制。這裡介紹在Windows上安裝SVN Server,以及使用Eclipse SVN Plugin 作為Client。這邊只介紹svn://連線,其他關於file://或是http://請翻翻參考文獻。

可以從Subversion官方網站抓Source或是Binary下來。這裡示範Windows 板的Server,Linux其實也是很像,路徑寫法不一樣而已。抓完之後建立一個新的Repository,如d:/svnhome執行:

svnadmin create d:/svnhome

它會像CVS一樣產生很多檔案,修改一下conf/svnserve.conf,讀寫的權限只有三種:read,write,none。anon-access是Anonymous Access, auth-access是通過認證的使用者權限。password-db是密碼檔。例如:

[general]auth-access = writepassword-db = passwdrealm = My First Repository

上面的例子是通過認證的使用者可以讀寫Repository,存放密碼的檔案叫做passwd。 passwd的格式如下,不必編碼:

[users]user=passwdjared=passwd

輸入svnserve -d 啟動svn daemon。


SVN Client

這邊介紹Eclipse的SVN Plugin,叫做Subclipse,官方網站在:http://subclipse.tigris.org/ 他也有提供update site http://subclipse.tigris.org/update。在Eclipse選單中選 Help->Software Updates->Find and Install-> Search for new features to install ->New Remote Site。URL 就輸入剛剛的http://subclipse.tigris.org/update。安裝起來就好了。

安裝後會有許多新的View以及多一個SVN Repository Exploring的Perspective。在SVN Repository中按右鍵New -> Repository Location。以剛剛的例子來說,url 為 svn://localhost/svnhome,帳號為jared,密碼為passwd。如下圖:

使用SVN可以在Project按右鍵Team -> Share Project -> SVN ->剛剛建立的Repository 其餘的使用方法和CVS都很類似。


參考文獻

  • Subversion Book中譯

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.