SVN and Eclipse integration
Download SVN plugin (http://subclipse.tigris.org)
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240 Download the appropriate SVN plugin,
We use version Eclipse_svn_site-1.6.5.zip
Unzip to the Eclipse installation directory Dropins
Refer to the previous article to start the SVN service, add users, set permissions, and more
Use Eclipse to create a project, right-click Team→share Project, and all of the operations are within the team, and we can do the various things we did in the previous article in eclipse
The first time checkout can right click on import to select SVN to check out;
Apache is an HTTP server, and Tomcat is a JSP, a servlet container that handles dynamic requests. Tomcat processing static request is not very good, can be static: pictures, static pages, JS, etc., to the Apache server processing;
There are two ways to run the SVN server
DAV: Running with Apache;
Svn:svnserve Standalone Server Mode
SVN with the Apache Integration
Download Apache (http://httpd.apache.org/download.cgi)
Installing Apache_2.2.14-win32-x86-no_ssl.msi
Open the Apache installation directory under the apache2.2\conf\httpd.conf configuration file: (Set permissions if not modified.) or delete yourself to create a new httpd.conf)
1. Remove the # in front of the following 2 lines (line 83rd):
LoadModule Dav_module modules/mod_dav.so
LoadModule Dav_fs_module modules/mod_dav_fs.so
2. Add the following two lines at the same time under the above two lines (must be placed in this position)
LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Authz_svn_module modules/mod_authz_svn.so
Locate the following two files in the Subversion installation directory
Bin/mod_authz_svn.so
Bin/mod_dav_svn.so
Copy to the Apache installation directory in the modules directory.
Using the Bin/htpasswd.exe executable in the Apache installation directory to generate the authorization file, the first build uses the-CB parameter: (using the Console (Administrator mode) to enter the directory)
HTPASSWD-CB [filename] [username] [Password]
Example: HTPASSWD-CB test_password user name password (where username is added to SVN)
-CB is created, if you want to add a new user name to an existing file, use-b
Move the generated Passwd.apache file to the SVN repository in the \conf directory
On the last side of the conf\httpd.conf file in the Apache installation directory, add:
#配置虚拟目录 #<location/svn/hqu> #引用远程访问模块DAV svn# Project Repository path #svnpath c:\repository\svn\test# authorization file #authzsvnaccessfile C : \repository\svn\test\conf\authz# All users need authentication #satisfy Anyrequire valid-user# authentication method #authtype basic# project name #authname "Hqu "#用户文件 #authuserfile c:\repository\svn\test\conf\test_password</location>
Access mode: (Restart Apache)
Http://localhost/svn/hqu
Success
Now we can use the tool to log in:
Input Address: Http://localhost/svn/hqu
Login with Lisi account with previous HTPASSWD-CB Test_password username and password configuration
Using SVN should we?
Frequent updates: reducing the likelihood of conflict
Before committing to a native test pass: Reduce the issue code to the repository
Make sure to write notes at the time of submission: convenient for other employees to view and review them later
Do not submit to the repository for files that do not need to be submitted