eclipse整合SVN

來源:互聯網
上載者:User
文章目錄
  • Eclipse 3.2/Callisto, 3.3/Europa, 3.4/Ganymede, 3.5/Galileo +
  • Eclipse 3.0/3.1
  • Eclipse 2.1.3
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuAGet the right version!

Subclipse versions are tied to specific
versions of the Subversion client API.  So you must have a matching
version of the Subversion client API (JavaHL) for your version of
Subclipse.  Any 1.x version of a Subversion client can talk to any 1.x
version of a Subversion server, so generally the version does not matter
too much.  However, if you use multiple client tools on the same
Subversion working copy, then it is important that the version of those
clients is all the same.  In addition, if you are on Linux, your
distribution might only support a specific version of Subversion and
JavaHL.  So you might want to stick with a specific version of Subclipse
for that client.

More information on how to get JavaHL, and the right version for each version of Subclipse can be found in the wiki . 

Current ReleaseEclipse 3.2/Callisto, 3.3/Europa, 3.4/Ganymede, 3.5/Galileo +

Subclipse 1.6.17 and 1.4.8 are now available for Eclipse 3.2+!

See the changelog for details. Existing Subclipse users should read the upgrade instructions
for important information on changes you to need to make to your
Eclipse preferences to see the new version in the update manager.

Subclipse 1.4.x includes and requires Subversion 1.5.x client features and working copy format.

Subclipse 1.6.x includes and requires Subversion 1.6.x client features and working copy format.

Links for 1.6.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.6.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

Links for 1.4.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.4.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.4.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

Eclipse 3.0/3.1

Subclipse 1.0.6 is now available for Eclipse 3.0/3.1!

See the changelog for details. Existing Subclipse users should read the 1.0.0 release announcement for details on how to upgrade to the 1.0.x release.

Links for 1.0.x Release:
Changelog: http://subclipse.tigris.org/subclipse/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.0.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

Eclipse 2.1.3

Subclipse 0.9.3.3 is linked against Subversion 1.1.4. Binaries for Windows are included.

Development for this version of Eclipse is no longer active. There are no new releases planned.

Download the Eclipse 2.x version

Installation Instructions

Here you will find
a screenshot tour of the Subclipse installation process in Eclipse 3.x.
These particular screens were captured in Eclipse 3.0.2 running on
Windows XP.

Install Subclipse in Eclipse 3.x

Step 1:

Begin the installation from the Eclipse Help menu item.

Step 2:

This
screenshot show the screen as it initially comes up. In this case you
will need to change the radio button to indicate that this is a new
install.

Step 3:

This
screen will vary depending on the features you have installed already.
You want to click on the New Remote Site button. If you are behind a
proxy and the Eclipse install mechanism does not work, then you can
download a zipped version of the update site and then click the New
Local Site button instead.

Step 4:

This screen is showing the New Remote Site dialog, filled in with the correct information to install Subclipse


Name: Subclipse 1.6.x (Eclipse 3.2+)
URL: http://subclipse.tigris.org/update_1.6.x

Name: Subclipse 1.4.x (Eclipse 3.2+)
URL: http://subclipse.tigris.org/update_1.4.x

Name: Subclipse 1.2.x (Eclipse 3.2+)
URL: http://subclipse.tigris.org/update_1.2.x

Name: Subclipse 1.0.x (Eclipse 3.0/3.1)
URL: http://subclipse.tigris.org/update_1.0.x

Step 5:

When you first come back to this screen, the site you added will NOT be selected. Be sure to select it before clicking Next.

Step 6:

This next screen shows all of the features that are available to install.

Step 7:

Click the button to accept the license agreement.

Step 8:

Confirm the install location

Step 9:

There
is an Eclipse preference to turn off this next dialog. I have never
seen a signed feature. Not even Eclipse.org nor IBM sign their
features.

Step 10:

Just a screenshot of the in-process installation.

Step 11:

Eclipse needs to be restarted after installing Subclipse.

Step 12:

Finally,
after restarting Eclipse, the first thing you will typically want to do
is open the Subclipse Repository perspective where you can define your
repositories. Be sure to also check the online help as well as the
Subclipse preferences located under Team -> SVN.

Updating Subclipse in Eclipse 3.x

Eclipse
3.x has a feature in preference to automatically check for updates.
Provided you are not behind a proxy that does not allow this feature, it
should work for Subclipse. Otherwise just follow the instructions for
installing Subclipse, except take the option to check for updates in
Step 2.

If you are behind a proxy that
does not work with Eclipse, then to install updates you just always
follow the same instructions you used to install a new version. If you
always unzip the site to the same local folder, you will not have to
define the local site each time.

三:安裝完成

1. 在功能表列中選擇Window→Open Perspective→Other開啟Myeclipse試圖列表。這個時候Myeclipse的視圖列表中,就出現了“SVN Repository Exploring”一項。

2. 開啟“SVN Repository Exploring”視圖。在左邊空白地區,單擊右鍵→New→Repository Location。

3. 在Url一欄中輸入svn://IP, 點擊Finish按鈕。

4. 選擇要下載的項目右鍵選擇checkout 就把項目下載到本地了

四:基本操作

1.提交工程
     右擊工程->小組->共用項目->選擇SVN->選擇svn://127.0.0.1(如果沒有,則建立一個新的資產庫)->下一步->完成

2.下載工程
     在SVN資產庫透視圖下,點開svn://127.0.0.1,會顯示出現在本機SVN上的所有工程,右擊你想下載的工程->檢出為->下一步->完成
3.操作工程
     3.1同步
          在MyEclipse J2EE透視圖下,右擊你要同步的工程->小組->與資產庫同步->這時會進入同步透視圖,會顯示出本機與SVN上內容有不同的檔案,雙擊檔案名稱,會顯示出兩個檔案中哪裡不同;
     3.2提交
          在同步透視圖下有"灰色向右的箭頭,表示你本機修改過",右擊該檔案,可以選擇提交操作;
     3.3覆蓋/更新
          在同步透視圖下有"藍色向左的箭頭,表示你本機修改過",右擊該檔案,可以選擇覆蓋/更新操作;

4.表徵圖說明
     4.1灰色向右箭頭:本地修改過
     4.2藍色向左箭頭:SVN上修改過
     4.3灰色向右且中間有個加號的箭頭:本地比SVN上多出的檔案
     4.4藍色向左且中間有個加號的箭頭:SVN上比本地多出的檔案
     4.5灰色向右且中間有個減號的箭頭:本地刪除了,而SVN上未刪除的檔案
     4.6藍色向左且中間有個減號的箭頭:SVN上刪除了,而本地未刪除的檔案
     4.7紅色雙向箭頭:SVN上修改過,本地也修改過的檔案

5.一些我遇到的出錯資訊
     5.1在上面講的3.2步輸入URL(svn://127.0.0.1)點下一步出現"svnserve.conf:12: Option expected"錯誤
          你開啟svnserve.conf檔案中的第12行,該錯誤是由於該行的前面有空格引起的,把左邊多出的空格刪除掉即可;
     5.2在上面講的3.2步輸入URL(svn://127.0.0.1/SVN_PRJ)點下一步出現"svn://127.0.0.1/SVN_PRJ non-existent in revision '7'"錯誤
          URL錯了,應該輸入svn://127.0.0.1即可

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.