Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
HƯỚNG DẪN CẤU HÌNH ECLIPSE + GOOGLE SVN SERVER
Tài liệu gồm 2 phần:Phần 1: đăng ký tài khỏan gmail để có thể sử dụng dịch vụ google svn (subversion)Phần 2: cấu hình eclipse để có thể upload code lên google svn server
Phần 1:Đăng ký 1 tài khỏan GMAIL, ví dụ tôi có tài khỏan gmail: [email protected]
Vào theo đường link sau: http://code.google.com/hosting
Tạo 1 project mới bằng cách click vào link [Create a new project]
Source: https://sunsai.googlecode.com/svn/sunsai Page 1 of 18Contact to: [email protected]
Contact to:Y!M: asteriskeseEmail: [email protected]: http://code.google.com/p/sunsai/
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Nhập các thông tin theo yêu cầu như hình trênẤn nút [Create Project] để hoàn thànhVD tham khảo: http://code.google.com/p/sunsai
Sau khi đăng ký xong, vào tab [Source] (1);Vào tab [Checkout] (2),
Source: https://sunsai.googlecode.com/svn/sunsai Page 2 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVERXem nội dung thông tin svn server (3).
Truy cập qua browser, link: https://sunsai.googlecode.com/svn/Truy cập qua câu lệnh SVN:
Chủ tài khoản gmail, truy cập qua link:
View only:
Tất nhiên các link này có thể thay đổi 1 phần, như project sunsai của tôi, tôi đã thay đổi thành:
Lấy password: Click chuột vào link: [googlecode.com password]
Source: https://sunsai.googlecode.com/svn/sunsai Page 3 of 18Contact to: [email protected]
svn checkout https ://sunsai.googlecode.com/svn/trunk/ sunsai --username TRANGTINH
svn checkout http ://sunsai.googlecode.com/svn/trunk/ sunsai-read-only
svn checkout https://sunsai.googlecode.com/svn/sunsai/ sunsai --username TRANGTINH
svn checkout https://sunsai.googlecode.com/svn/sunsai/ sunsai-read-only
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Tạo password mới, ấn nút [Generate] (6):Password mới tạo ra sẽ hiển thị ở vị trí (5)
Source: https://sunsai.googlecode.com/svn/sunsai Page 4 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Ấn nút [Save Preferences (7) để lưu lại.
KL:Như vậy ta đã có link, username, password để truy cập GOOGLE SVN SERVER.
Source: https://sunsai.googlecode.com/svn/sunsai Page 5 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVERPhần 2:Mở eclipse, tính đến thời điểm viết tài liệu (2009.02.24, 4h45 AM), tôi đang dùng bản Eclipse 3.3.2 Europa.
Thêm plugin SVN vào eclipse:C1: download plugin theo link: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240 Download về và giải nén vào thư mục [plugins] của ECLIPSE. Restart lại ECLIPSE.Vào menu: [Window/Preferences.../Team/SVN], cấu hình theo quan điểm cá nhân. Restart lại ECLIPSE (tắt đi/bật lại)
C2:
Source: https://sunsai.googlecode.com/svn/sunsai Page 6 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Source: https://sunsai.googlecode.com/svn/sunsai Page 7 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Source: https://sunsai.googlecode.com/svn/sunsai Page 8 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Click OK để hoàn thành việc cài đặt plugin này.
Cài đặt xong plugin, restart lại eclipse.Chờ khi eclipse khởi động xong,
Source: https://sunsai.googlecode.com/svn/sunsai Page 9 of 18Contact to: [email protected]
Name: Subclipse 1.4.x (Eclipse 3.2+)URL: http://subclipse.tigris.org/update_1.4.x
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Cấu hình SVN theo quan điểm cá nhân:
Source: https://sunsai.googlecode.com/svn/sunsai Page 10 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
KL: Cấu hình xong ECLIPSE + PLUGIN SVN.
Tạo project mới và kết nối đến svn server:
Source: https://sunsai.googlecode.com/svn/sunsai Page 11 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Source: https://sunsai.googlecode.com/svn/sunsai Page 12 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Source: https://sunsai.googlecode.com/svn/sunsai Page 13 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Source: https://sunsai.googlecode.com/svn/sunsai Page 14 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Sau khi tạo 1 project, ta có kết quả như trên, tất nhiên project này chưa có code gì và chưa đồng bộ với svn server.
Source: https://sunsai.googlecode.com/svn/sunsai Page 15 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
Right click vào project name: [sunsai], chọn Team/Share Project…
Nhập link đã lấy được từ phần 1, https://sunsai.googlecode.com/svn/sunsai .Source: https://sunsai.googlecode.com/svn/sunsai Page 16 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVERChú ý: bỏ phần project name [sunsai]
Source: https://sunsai.googlecode.com/svn/sunsai Page 17 of 18Contact to: [email protected]
Hướng dẫn cấu hình ECLIPSE + GOOGLE SVN SERVER
KL: Project đã được đồng bộ lên server.End.
Source: https://sunsai.googlecode.com/svn/sunsai Page 18 of 18Contact to: [email protected]