Introduction to CVS in eclipse

Source: Internet
Author: User

Introduction to the use of CVS in eclipse [Image]:

Many times We CVs will be used during project development. Now I will introduce how to use the CVS management function in eclipse. Eclipse itself comes with CVS, we just need to set it up to connect to the CVS server.
View

After you click the CVS icon, right-click in the blank area to create a new resource library location, as shown in figure

After entering the information, click "OK" to establish a connection with the CVS server. Next we will open the directory on the CVS server.

For the directory on the CVS server, we can check out, one is to check Project The directory will be checked out to automatically generate a project in eclipse,
You can also check a directory to any project, that is, the [DETECTED] function. Note that only the checked files can be submitted after modification. The operations on the file are as follows:

String 9

For files, the most common method is to compare the differences between files of different versions in CVS, so that we can find out if there is any problem with the update. Right-click any file and you will see the picture above, then we use it to display it in the resource history. We can see:

Press ctrl and click the mouse. Select For files of the two versions, right-click the file and click Compare to compare the differences between the two versions.

Next let's take a look at how to update files on the CVS server. As mentioned above, only files detected from the CVS server can be updated and submitted.

In
Select any checked-out file in the project, right-click the file, select a group, and you will see many functions such as submission and update. After the changes are made, click Submit to submit the changes to the CVS server and click Update.
It is used to retrieve files from the CVS server to update local files. Note that when we create a project Source code When files and compiled class files are different directories, class files cannot be uploaded.
The file on the CVS server has a problem. You can only copy the class file to a dedicated directory for upload, because the project will compile the CVS directory under the original file to the class file during compilation
This problem occurs. String 8
Next, by the way, a history function of an eclipse local file is used to compare and replace it with a local history function of eclipse, this helps you restore the functionality of comparing previous or previous files. View
I believe you will understand this function at a glance.
The basic functions of eclipse + CVs are actually very simple to use. If you have a try, you will know that most of my projects use their comparison functions. For file upload, I still use CVs. Client ProgramBecause the source CodeThe directory is different from the class file directory, so it is safer
These help you to use CVS in eclipse. If you have any questions, please contact us.
-- Big belly Weng
2004.10.9

String 5

String 5

Eclipse + CVS basic usage (2)

The first part describes a problem. When the project is compiled, the CVS directory under the original file will also be compiled to the class file, which may cause the upload class file to fail. After two days of research, we found that this problem can be solved. The method is as follows:
Click the preference in the window to see:

As shown in the figure, the CVS directory has been filtered out, And the folder is cleared when the full build is removed. In this way, the CVS directory in the folder where the class files are located will not be deleted when the files are compiled. After completing these two steps, we can solve the problem.

String 4

Eclipse + CVS basic usage (3)

When many people develop a project, we usually encounter a problem that two people download the project from the CVS server at the same time. Same Files and modifications. When one person submits the changes first and the other person submits the changes, the previous one is often overwritten. Let's see how CVS in eclipse handles this problem, first, we checked out a directory named test from CVS and opened a file named test1.txt, and added the ADC in the file, for example:

Then we use the client program of CVS to download the same test directory, and then add bbb to the test1.txt file. This is equivalent to modifying the same file for two people at the same time. We will submit one file first. For example:

Then, submit the example file test1.txt in eclipse, as shown in Figure


An error occurs: String 5

This error indicates that your file submission failed. Another feature I used is to synchronize with the resource library. As you can see in the previous figure, click synchronize: corresponding descriptions are provided in the figure.

In this way, you can know where the first update is modified. More importantly, you can overwrite and submit the update or overwrite the local file. See:
String 3


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.