How to connect CVS Server for Windows in Eclipse

xiaoxiao2021-03-06  51

It is very important to use a good version control system in a project with a team of three or more teams. If your system is based on J2EE, eclipse is used as a development tool is a very good choice, and there are several article descriptions for Eclipse installation and configuration.

The CVS is fully named Concurrent Versions System, which is mainly used to manage the source code, documentation and other materials generated during development, and record their update history, enabling development team members to better collaborate. The CVS version control system uses a C / S architecture. CVS Server can support Linux, Windows 2000 / XP / 2003, and some Unix (such as SUN Solaris et al.), CVS Client also has a corresponding version on Linux, Windows, and UNIX.

In Eclipse has built-in CVS Client, Eclipse's documentation It is recommended to install CVS Server on the operating system of Linux, UNIX, but in most people's development, CVS Server for Windows is still the most convenient and fast way. Although it may be more stable than Linux, UNIX version.

Software you need to prepare before formal configuration:

1, Eclipse http://www.eclipse.org/downloads/index.php

The latest version is 3.0

2, CVS Server for Windows http://www.cvsnt.com/cvspro/

The latest version is 2.0.51D

The installation of these two products is very simple, and Eclipse directly decompresses a directory to run (of course, the corresponding version of JDK support), CVS Server runs the installer directly.

The specific configuration is as follows:

1, configure CVS Server

Run the Windows Menu CVSNT / CVS Service Control Panel, the following window appears:

Switch the reositories page, click the "Add" button to create a project library, in me here:

Switch to the Advanced page:

Be sure to select two items of use local users for pserver and preted to be a unix CVS Server. The former is required to use the CVS Server's local user with Windows to perform permission authentication. If domain user permissions are used, then all client developers are You must log in to the Windows domain to connect to CVS Server, which is more troublesome. The latter is to force CVS Server for Windows to simulate unix CVS Server, only such Eclipse can connect to CVS Server for Windows!

After all the above operations are performed, it is best to return to the home page, restart CVS Service and CVS Lock Service.

Remember that you have to create a local user on Windows Server, and you will use it later.

2, configure CVS Client in Eclipse

After running Eclipse 3, perform the functions shown below:

In the Repositories view appearing, click the function shown below (New / Repository location ...):

Appea of ​​the Repository Location appears:

The name, repository name, the name of the CVS Server you just configured, the repository name, the local user who has just built, and then check Save Password (if you don't want to Enter your password every time, let's hook it), press "finish", if there is no error prompt after the progress box, you can make a version control over the repository you just even. First, share your local Project to the Repository, just open the Java view, select a project, perform the functions shown below (Team / Share Project ...):

After the prompt window, press "Next" all the way. After completing all local files, then you can use the powerful version of the CVS.

转载请注明原文地址:https://www.9cbs.com/read-117830.html

New Post(0)