Tuesday, March 13, 2012

Eclipse- Subversion Tutorial 簡易安裝(SubClipse)


Eclipse的版本控管器(Version Control)
,我用Subclipse 當作我的SVN,至於功能和定位上跟一篇 Visual Studio Team Foundation Server 是差不多的,當然SubClipse是無法幫你在Server上組建專案和壓力測試。
Read on to see how to add subversion support to Eclipse and how to perform basic version-controll.
If you use visual studio 2010 , i strongly suggest that you can use Visual Studio Team Foundation Sever 2010


以下開始:
第一步: 準備IDE
下載Eclipse. http://www.eclipse.org/downloads/
第二步:加入Subclipse 到 Eclipse
打開eclipse 選擇 Help-> Eclipse Marketplace..
在Find 裡面打subversion即可找到.選擇安裝。
若安裝的eclipse 版本沒有Eclipse Market
可以選擇
Help->Install New Sofeware
按下Add.
Name: 可以隨意取
Location:http://subclipse.tigris.org/update_1.8.x
版本可能會在更新,可至官網http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA
查詢。
第三部:
安裝完後看
Window-> Preferences->Team->SVN
Client:(是否有顯示正確)顯示not available代表JavaHL沒裝成功
就必須做下列事情
安裝完後subclipse,在64bit OS 中可能會出現 JavaHL 的錯誤,原因在官網提供的JavaHL 沒有64bit,因此要再安裝
Slik-Subversion-1.6 (注意版本)
第四部:
上google Code 申請專案
000001
選擇Creat  New Project
Version control system 選擇Subversion
在專案建置完成之後
Source 即可看到 網址 https://<ProjectName> .googlecode.com/svn/trunk/ <ProjectName> –username <youtGmail>
這就是檔案存放的網址
第五步:跟SVN同步檔案
點選 open perspective->Other 選擇 瀏覽 SVN 檔案庫

在SVN檔案庫->滑鼠右鍵->新增->檔案位置
輸入
.googlecode.com/svn/trunk">.googlecode.com/svn/trunk">.googlecode.com/svn/trunk">URL:https://<projectName>.googlecode.com/svn/trunk 即可
連接成功
000001
安裝到此都沒有錯誤就代表已經成功了。
下一篇 Subversion使用教學 &eclipse 熱鍵
---------------------------------------------------
that’s begin:

First Setp: download IDE
http://www.eclipse.org/downloads/
Second step: Add Subclipse to your Eclipse

Open eclipse  select Help-> Eclipse Marketplace..
at Find box:
Input SubClipse And Install it.
if you don’t find Cclipse Marketplace you can Help->Install New Sofeware
Name:(waht you like)
Location:http://subclipse.tigris.org/update_1.8.x
if you want new version check out Website:http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA

Thrid Step:
After installtion
Check out Window-> Preferences->Team->SVN 
you may find out SVN Client:not available.(if it is correct go to Forth Step)
that because you OS is 64bit And JavaHL don’t have 64bit version installed.
so go to download
Slik-Subversion-1.6  64bit (vesion beware). if you use Subclipse 1.8x.
reststart eclipse

Fouth Step:
go to Google code to get new  project.

At Version Control System Select Subversion
After Creat new project, go to source you will see http://xxxxxx.googlecode.com/svn/trunk xxxxxxxx
this http will tell where your project will be saved on website.
Fifth Step: Synchronous
at eclipse right top side Select open perspective->other

at SVN 檔案庫 you can see picture at top
mouse Right Click –> add->檔案庫位置
And Synchronous Complete.
Next Article: Subversion how to use &eclipse HotKey(shortcut Keys).

No comments:

Post a Comment