在项目中应用SVN
-
在服务器上创建版本库
1.安装SVN服务器版,安装完后在cmd窗口中键入:svnadmin create F:\svn\aa
2.编辑aa/conf下的authz、passwd文件
- authz中编辑
liferayGroup = wjy,axy //被授权的用户名
@liferayGroup = rw
- passwd中编辑
[users]
# harry = harryssecret
# sally = sallyssecret
axy = 123 //给用户分配密码
wjy = 123
3.启动SVN:svnserve -d -r F:\svn
-
在本地磁盘上应用SVN
-
在VStudio中应用SVN
下载AnkhSVN插件,安装完之后就能在VStudio中Update和Commit代码了,更新和提交时每个项目和整个解决方案都要Update or Commit。
-
在MyEclipse中应用SVN
Get 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 Release
Eclipse 3.2/Callisto, 3.3/Europa, 3.4/Ganymede, 3.5/Galileo +
Subclipse 1.6.5 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.
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.
补充:在MyEclipse中更新or提交代码:项目名->右键->Team->Update or Commit