A major problem occurred when modifying a web project in netbeans over the past few days. Fortunately, netbeans has a local history (equivalent to a local version control system ). Remember most
Near subversion is very popular, and netbeans also has a built-in subversion, so I plan to build a subversion by myself.
Software used:
Client: CollabNetSubversion-client-1.5.7-3.win32.exe
Server: Setup-Subversion-1.5.1.en-us.msi
Netbeans (6.x)
SVN plug-in: the svn plug-in netbeans interacts with the client program to interact with the svn server. Therefore, the svn client must be installed. In
Find the tool-plug-in netbeans, open the "available plug-in" tab, search for the input SVN, and you will be able to find the svn plug-in.
Install the Subversion server ·. The installation path should not contain spaces. There is nothing to say about installing the Subversion client.
After installation, there will be these two program directories in the "start -- all programs" menu, which should have instructions. If you are using the above two software, the content of the description document is consistent, but only one
CHM and PDF. The Appendix A (Appendix A) of this document is a document that quickly uses subversion. Follow the instructions in this document.
To be honest, it took me more than two days to complete this task. I have read a lot of tutorials from the Internet, but I am confused, the software's official documentation is more reliable and can be completed in half a day.
In addition, refer to Chapter 6 svnserve and a custom server in server configuration, which describes how to install subversion as a system service.
Note the following when installing the Subversion service:
- The format of binpath = xxx and other parameters must be noted that there must be no space between binpath = and no space between = xxx.
- If the service is successfully installed, success will appear and you can see the service in the service.
- In
Errors are inevitable during service setup, so that you can create invalid services. These services can run the command: SC Delete service name in the command line.
. If the service name contains spaces, the service name must be packaged. The service name is SC create
The name of XXX, not the value of displayname. displayname is the name displayed in the system service tool.
- You can run the "Net start service name" command in the command line to start the service. You can also disable the service by using the "net stop service name". To view all started services, run the "Net start" command.
A problem I encountered in netbeans
After creating and starting the Subversion service, I directly click a project in netbeans to select and submit. If the path is correct, the uuid always appears
"String1" doesn' t match expected UUID
"String2 ". I checked the information on the Internet, probably because of permission issues. Then I thought about it and understood it. The problem is: I set
Repository, subversion gives this repository a uuid, And then I try to add a project using subversion on the client. This
The problem lies in that the client cannot add a project to the server. It can only check out the project from the server, make changes, and then submit. The UUID should be used to prevent clients from adding projects to the server at will.
. After finding the cause, I use the "SVN import" command to add my project to repository (example command: SVN Import
/Tmp/myproject file: // var/SVN/repos/myproject-M "initial
Import "). Delete the project in netbeans, but do not delete the source file. In the toolbar, find "Team Cooperation"-"Subversion"-"check out ",
This project can be checked out to netbeans. Note that the relative path must be used for the check-out, relative to the value of-r when setting the system service. Appendix: the BAT file I will set as used by the System Service: SC create svnserver binpath = "/" C:/program files/subversion/bin/svnserve.exe/"-- service-R D: /svnrepos "displayname =" Subversion "depend = TCPIP start = auto <br/> Net start svnserver <br/> pause