Using google's free SVN repository with Eclipse (使用Eclipse的SVN插件管理GOOGLE CODE的项目)
2013-04-16 00:08
549 查看
近来在协助一SAP的咨询需求项目。项目要进行一些适度的开发,里面涉及到JAVA开发。为了给客户寻找一些免费的项目在线版本管理的工具,推荐使用GOOGLE CODE。转一上外国佬写的,使用Eclipse的SVN插件管理GOOGLE CODE的项目,实现在Eclipse上checkout,update项目的各种各样文件。
Ok - here are some very quick notes on getting a google svn hosting account set up with eclipse; as google is offering us all such an amazing resource, I have a feeling I'll be doing this again some time whilst working on other projects...
If you already have a gmail account, make sure you're logged in (that way, your repository and your account will be linked).
Start here:
http://code.google.com/hosting/
Go to the 'Create a new Project' link and create your project...
Install eclipse if you haven't already (current recent version is 3.5):
http://www.eclipse.org/downloads/
Now you need to install the subclipse plugin from within eclipse..
Here are some step-by-step instructions:
http://subclipse.tigris.org/install.html
Once that's done you should be able to open your repository as a new project within eclipse.
Within the package explorer (the panel on the left if you're in the java developer perspective), right click to get the context menu and go to 'New' and 'Other...'
expand the SVN folder and select 'Checkout Projects from SVN' and select Next
Select the Create a new repository location and select Next
The URL will be:
https://[YOUR_PROJECT_NAME].googlecode.com/svn
If you don't use https:// you'll check out the repository as read only
Select (highlight) the folder to check out as an eclipse project (e.g. trunk) and select Next.
Select the check out as a project configured using the New Project Wizard and select 'Finish'
For this exercise, I'm checking mine out as a java project, so I'm selecting Java Project and Next on the wizard box.
Give the Project a name (e.g. myProject), select Finish and OK
Let it check out your project...
You should see something like myProject [trunk] in the package explorer.
You can now right click on the folder and go to New > Folder and create a new folder
When you're ready, right click on the folder you've created, go to the Team context menu and select 'Add to Version Control'; you'll probably need to do this for any new files you subsequently add...
From then, commit will add new changes and update will refresh a stale repository.
One other note: to check out the project, I used my gmail username. The svn password isn't the same as your gmail password though.
I found the password for the code repository (when logged in) here - so hopefully this will help:
http://code.google.com/hosting/settings
NB: I've seen situations where subclipse (or subversion) would keep asking for a password; I managed to stop it from doing this by going into the Eclipse > Window > Preferences, expanding the Team folder, selecting SVN and ensuring that the SVN interface was
selection was set to SVNKit (Pure Java).
Using google's free SVN repository with Eclipse
Ok - here are some very quick notes on getting a google svn hosting account set up with eclipse; as google is offering us all such an amazing resource, I have a feeling I'll be doing this again some time whilst working on other projects...If you already have a gmail account, make sure you're logged in (that way, your repository and your account will be linked).
Start here:
http://code.google.com/hosting/
Go to the 'Create a new Project' link and create your project...
Install eclipse if you haven't already (current recent version is 3.5):
http://www.eclipse.org/downloads/
Now you need to install the subclipse plugin from within eclipse..
Here are some step-by-step instructions:
http://subclipse.tigris.org/install.html
Once that's done you should be able to open your repository as a new project within eclipse.
Within the package explorer (the panel on the left if you're in the java developer perspective), right click to get the context menu and go to 'New' and 'Other...'
expand the SVN folder and select 'Checkout Projects from SVN' and select Next
Select the Create a new repository location and select Next
The URL will be:
https://[YOUR_PROJECT_NAME].googlecode.com/svn
If you don't use https:// you'll check out the repository as read only
Select (highlight) the folder to check out as an eclipse project (e.g. trunk) and select Next.
Select the check out as a project configured using the New Project Wizard and select 'Finish'
For this exercise, I'm checking mine out as a java project, so I'm selecting Java Project and Next on the wizard box.
Give the Project a name (e.g. myProject), select Finish and OK
Let it check out your project...
You should see something like myProject [trunk] in the package explorer.
You can now right click on the folder and go to New > Folder and create a new folder
When you're ready, right click on the folder you've created, go to the Team context menu and select 'Add to Version Control'; you'll probably need to do this for any new files you subsequently add...
From then, commit will add new changes and update will refresh a stale repository.
One other note: to check out the project, I used my gmail username. The svn password isn't the same as your gmail password though.
I found the password for the code repository (when logged in) here - so hopefully this will help:
http://code.google.com/hosting/settings
NB: I've seen situations where subclipse (or subversion) would keep asking for a password; I managed to stop it from doing this by going into the Eclipse > Window > Preferences, expanding the Team folder, selecting SVN and ensuring that the SVN interface was
selection was set to SVNKit (Pure Java).
相关文章推荐
- Android—如何使用Eclipse svn插件管理Android项目
- 使用ant实现svn管理得eclipse插件开发项目的日构建功能(ant1.7.1+svn1.6.3+eclipse3.4.2)
- 使用ant实现svn管理得eclipse插件开发项目的日构建功能(ant1.7.1+svn1.6.3+eclipse3.4.2)
- Android—如何使用Eclipse svn插件管理Android项目
- Eclipse中使用SVN插件创建项目的主干/分支/标签
- 使用 Eclipse 的 SVN 插件创建项目的主干/分支/标签
- 使用maven+eclipse+svn结合的方式管理多项目依赖
- eclipse使用svn插件,上传下载项目
- 使用 Eclipse 的 SVN 插件创建项目的主干/分支/标签
- 使用 Eclipse 的 SVN 插件创建项目的主干/分支/标签
- MyEclipse/Eclipse 安装svn插件 使用svn导入check out ,check in项目. (SVN插件下载)
- 使用Eclipse和ADT插件管理Android项目(Managing Project from Eclipse with ADT)
- Eclipse安装SVN插件,从Google Code上下载开源项目
- Eclipse 使用svn插件检出maven项目,启动服务时提示依赖注入失败
- 使用VS2008+SVN插件配合Google Code搭建自己的开源项目管理
- SVN之——使用 Eclipse 的 SVN 插件创建项目的主干/分支/标签
- 使用svn与maven管理的项目导入Eclipse,但是与本地svn客户端关联不上?
- 使用 Eclipse 的 SVN 主要插件创建项目/支/标签
- 版本管理--MyEclipse使用svn插件管理项目
- ADT/Eclipse上 使用SVN管理项目基本流程 一看就懂