古詩詞大全網 - 成語用法 - eclipse上怎麽安裝svn

eclipse上怎麽安裝svn

eclipse上安裝svn:

壹、給Eclipse安裝SVN,最常見的有兩種方式:手動方式和使用安裝向導方式。具體步驟如下:

方式壹:手動安裝

1、從官網下載site-1.6.9.zip文件,網址是:subclipse.tigris.org

2、從中解壓出features與plugins文件夾,復制到E:/MyEclipse/myPlugin/svn裏面,其它的*.xml文件不要。

3、在E:/MyEclipse/MyEclipse X.X/dropins下新建文件svn.link,內容是:path=E://MyEclipse//myPlugin//svn 保存。

4、刪除E:/MyEclipse/MyEclipse X.X/configuration/org.eclipse.update文件夾

5、重啟myeclipse就壹切正常了。

方式二:使用Eclipse安裝向導

打開Eclipse

help->Software Updates->find and install(如果沒有這個就用help->Software Updates->Add/Remove Software即可)

選擇search for new features to install, Next

點擊new remote site

輸入name:subclipse 1.6.x,url:patible.錯誤,這個不要緊,在彈出框中選擇subclipse,把Subclipse Integration for Mylyn 3.x選項去掉即可

Next壹路安裝完成!

二、Eclipse中使用SVN(以MyEclipse8.0為例)

1、***享項目(把本地的項目***享到subversion服務器上)

打開MyEclipse8.0,假設要***享projTest是項目名稱

右鍵項目projTest->Team->Share Project->Svn,

單庫模式下url填寫svn://svn server address/,多庫模式下url填寫svn://svn server address/Repository1,其中Repository1是庫的名稱

next直到finish,proj1就被***享到svn服務器上了,但是代碼並沒上傳,還需要commit壹次

右鍵項目projTest,team->commit,項目內容就被上傳到svn服務器了

2、簽出項目(把svn服務器上的項目下載的到本地)

打開MyEclipse8.0

window->open perspective->svn repository explorer(如果沒有在other裏選擇)

在左邊空白處右鍵->new->repository location

單庫模式下url填寫svn://svnserveraddress/,多庫模式下url填寫svn://svnserveraddress/Repository1(同步驟二)

右鍵projTest->check out

next直到finish,該項目就被簽出到本地,切換到java視圖就能看到該項目了