Use CVS in Eclipse to transfer from: 9CBS Xuefeng version control is essential in team development. CVS is an excellent open source version control software. Eclipse itself has built-in support for CVS, just simple configuration, you can use CVS. First we have to install and configure the CVS server correctly, usually Linux Server comes with CVS services, but the command line operation is more cumbersome. Under Windows, there is also a simple and easy-to-use CVS server. Here we recommend cvsNT, you can download CVSNT
2.
0.51A
, Install and start CVSNT: and then switch to the Repositories panel, add a repository, named / cvs-java, CVSNT will prompt to initialize this repository, select Yes: then select "Pretennd to Be a unix CVS Version" on the Advanced panel: Then, add your username and password for each developer in the Windows account. Now, the installation configuration of CVSNT has been completed. To start Eclipse, start Eclipse, we can use the original Hello project, or create a new project, then select Menu Window-> Show View-> Other, open CVS-> CVS Repositories: Then click Buttons, add a repository: Note that the username and password fill in the username and password of Windows, then select "Validate Connection On Finish", click Finish to complete: First, we must put an existing project into the CVS server and switch to Package. Explorer, select Hello Engineering, right click, select Team-> Share Project ...: Use the repository you just added, continue, and add all files to CVS, and finally Eclipse prompts Commit:
Fill in a simple annotation, then determine, then Eclipse will submit the entire project to the CVS server, you can see the icon changes in the package explorer, and the Hello.java file will have a version number 1.1. Refresh in the CVS Repositories panel, you can see the project just added in:
In the team development, when a basic engineering is created and submitted to CVS, other developers must first check out this project to their respective local computers. Here we first remove the Hello project in Package Explorer, then Open CVS Repositories (If you don't see the repository, add repository according to the above method), select Hello Engineering, right click, select Check Out as ...:
As a project, you can see the check out in Package Explorer. When you modify some source files, you need to submit a change to the CVS server. Select the changed file or project, right click, select Team-> Commit ...: Then fill in a simple comment, you can submit it to the CVS server, you can see the version number of the source file becomes 1.2. The above briefly introduces how to build a CVS server and how to use CVS in Eclipse, you can refer to the CVS manual to learn more about BRANCH, MERGE and other functions. Fill in a simple annotation, then determine, then Eclipse will submit the entire project to the CVS server, you can see the icon changes in the package explorer, and the Hello.java file will have a version number 1.1. Refresh in the CVS Repositories panel, you can see the project just added in:
In the team development, when a basic engineering is created and submitted to CVS, other developers must first check out this project to their respective local computers. Here we first remove the Hello project in Package Explorer, then Open CVS Repositories (If you don't see the repository, add repository according to the above method), select Hello Engineering, right click, select Check Out as ...:
As a project, you can see the check out in Package Explorer. When you modify some source files, you need to submit a change to the CVS server. Select the changed file or project, right click, select Team-> Commit ...: Then fill in a simple comment, you can submit it to the CVS server, you can see the version number of the source file becomes 1.2. The above briefly introduces how to build a CVS server and how to use CVS in Eclipse, you can refer to the CVS manual to learn more about BRANCH, MERGE and other functions.