顯示具有 Eclipse 標籤的文章。 顯示所有文章
顯示具有 Eclipse 標籤的文章。 顯示所有文章

2011年7月20日 星期三

(Mac) 使用 Eclipse + TFS plugin 來做版本控制

0 意見
使用 Team Foundation Server 做版本控制的朋友,
如果在非 Windows 的環境下開發,
那麼要如何使用 TFS 版本控制的功能呢?

以 Mac OS 為例,我知道的有下面幾種方式:
1. Windows 以 Visual Studio 做版本控制,然後以 Shared Folder 的方式分享給 Mac OS 存取
2. SvnBridge 透過 SVN 做中介
3. Eclipse + TFS plugin 

目前我使用 3.,使用上覺得還蠻方便的,
對於在非 Windows 環境下開發,
且公司又是以 TFS 做版本控管的朋友應該是蠻方便的方式,
而且操作介面跟使用 Visual Studio 的選單完全一樣。

步驟:
1) 下載 eclipse-SDK-3.7-macosx-cocoa-x86_64.tar.gz
2) 下載 TFSEclipsePlugin-UpdateSiteArchive-10.1.0.zip
3) 解壓縮 Eclipse,開啟 Eclipse 主程式
4) Help -> Install New Software -> Add -> Archive 
然後選擇  TFSEclipsePlugin-UpdateSiteArchive-10.1.0.zip
在 Name 欄位任意輸入一個名稱:TFS Plugin
5) 將 Visual Studio  Team Explorer Everywhere 2010 打勾
6) 下面我有打勾的項目有
Show only the latest versions of available software
Group items by category
Show only software applicable to target environment
Contact all update sites during install to find required software
7) 按 Next 會開始安裝,接著就照步驟完成它
8) 安裝成功後會提示 restart Eclipse
9) Window -> Show View -> Other -> 選擇 Team Foundation Server -> Team Explorer
10) 按 Team Explorer 上面的+圖示,
I have read and accept the terms in the License Agreement -> Next -> 輸入 Product Key -> Next
11) 輸入 Server 位址, e.g. http://tfs.example.com:8080/tfs
12) 輸入 Username, Domain, Password
13) 然後 Next 選擇 Team Project

以上大功告成!Enjoy!






2010年4月12日 星期一

Ubuntu 與 Debian 環境下的 eclipse 有些按鍵無法動作

0 意見
平常用 Vim 習慣了,
但是因為最近同事在推廣 eclipse 的好用之處,
所以我就裝起來試試看,
結果在創建專案時,
遇到 Next / Cancel / Finish 的按鍵沒有作用的現象;
上網 google 後,
參考 http://softsmith.blogspot.com/2010/02/eclipse-button-ubuntu.html (軟體工匠) 的教學,
在 Ubuntu 上面已經 ok 了,
但是我在公司的 Debian 居然還是一樣不正常 ="=,
(後來發現把Debian重開後,就正常了!)
所以在公司還是繼續用 Vim ^_^

筆記一下(解法):
#!/bin/sh
export GDK_NATIVE_WINDOWS=true
./eclipse