[Z] integration of subversion and myeclipse for online version control

Source: Internet
Author: User
Tags tortoisesvn

To better learn SVN, please refer to the next articleArticle

Version Management in real Java projects _ integration of subversion and myeclipse

Development Environment:

1. collabnetsubversion1.6.0-1rc2serverforwindows (SVN server, which can be searched and downloaded on thunder)

2. TortoiseSVN-1.6.1.16129-win32-svn-1.6.1 (GUI operating software, good, this can be downloaded directly in tortoisesvn official)

3. subclipse (site-1.6.2, which can be downloaded from the official website of the subclipse plug-in)

4. myeclipse enterprise workbench version: 7.0 milestone-1 (this will not be said)

5. Microsoft Vista SP1

Reference: Let's take a look at the series 2_subversion (you can download it for a while. It's very good. It's made by the instructor in the middle of the wind, and it's very good)

The subversion that I learned a long time ago suddenly found to be useful in the past few days. Now I have learned it again and found that I have learned a lot from it, in particular, the PDF provided by Miss Feng zhongzhong has helped me a lot.

Subversion can be used for online version management. In this way, a large project won't overwrite its own operations because of some operations. You can search online for the benefits of subversion, it is definitely worth learning.

OK. Start with the question. Download the development environment and install it. This should be simple. (The installation of the subclipse plug-in is to copy the two folders extracted from site-1.6.2 to eclipse under the myeclipse directory, you can choose to delete a configuration file or add something to a configuration file. You can check it online, in addition, if myeclipse6.x is installed, you can download and install it by updating myeclipse and searching for the site)

I have already explained the svn operation methods clearly in the PDF file provided by Miss Feng, And I have provided many examples for us to facilitate our learning, today, I will introduce a very simple operation (since we have understood the principle, we can use all gui operations) to integrate myeclipse and SVN. Now let's take a step-by-step look at SVN.

1. Open myeclipse and select Window> show View> SVN resource library.

Create a resource library, install the explanation from the instructor in the middle of the wind, and enter http: // localhost/project_version as the URL. At this time, an error will be reported for RA layer request failed, and sometimes the connection failure to localhost will be reported, for example:

Later, I tried to create a repository first, and then create a new resource library. I still couldn't. I searched the internet for a long time, and I tried to talk about proxy, Kaspersky, and change mode, I believe this is the case for some people, but it seems that someone has solved the problem. Please know the solution and contact me (q506817493). Thank you first.

Later, I chose to enter the newly created repository SVN: // localhost/project_version in the URL. This is acceptable. For this method, I would like to say two points. First, it seems that you need to import a file after creating the repository. Otherwise, an error will be reported; the second is that I restarted my computer the next day and found that I could not access it. So I gave up this method. Instead, I figured out a method.

2. Create a New SVN Repository

Create a folder on the hard disk (it must be blank), right-click the empty folder and choose tortosesvn> Create repository here. Then, click OK to see what has changed in the folder. In this way, a repository is created, which can be used for version management in the future.

(The image above is processed)

III. open the svn perspective in myeclipse, create a resource library, and enter file: // G:/project_version as the URL (Do not ask why, I do not know, I tried it out. You can also do this to ensure that SVN operations can be completed.) Well, a new resource library has been created in myeclipse, now you can release your project to the resource library.

4. Release the project to the resource library

Create a project and create a JavaProgram, As follows:

Now let's take a look at the strength of SVN.

Right-click the project and choose "team"> "share project" from the shortcut menu.

Take a look at the console output:

Mkdir -- parents-M "Initial import. "File: // G:/project_version/testsvn

Checkout file: // G:/project_version/testsvn-r head -- depth = immediates -- force

Checked out Revision 1.

Description: The plug-in has helped us do a lot of work in the command line window.

You can click submit on the project to submit a simple version management system on the local machine. Do not think it is a simple backup tool, in fact, it can accomplish a lot of things you didn't think of. For example, you can roll back to the previous version. You can create a new logo (manage important versions... You can try it by yourself. It doesn't have to be used until we get to work. Now we can manage it as our version, although on the local machine, in addition, the project is not very big, but good habits need to be accumulated. Pay attention to the backup warehouse when appropriate, so that version management can be performed in other cases.

Another one is that since the blog post says it is online version management, we are currently operating on the local machine, but you can apply for some svn-managed websites online. We recommend two C and Google codes, this allows you to use online version management. At this time, more than one person can develop projects. You can develop projects with multiple users without worrying about version management.CodeThe version is incorrect.

Google Code web site is http://code.google.com/hosting/

Thank you.

Here, I would like to thank Mr. Feng zhongji for writing its documents in great detail. (It is strongly recommended that you read the svn documents provided by the teacher in the middle school)

If you have any questions or suggestions, please ask me (506817493) or follow up. Thank you.

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.