One, configure file share permissions
1. Start Menu--run-input services.msc
2. Locate the server's service, right-click Properties, set Startup type to Automatic
3. Right-click the desktop Icon Network Neighborhood, properties,
4, right-click the local connection icon, select Properties, tap the Install button, select the protocol, click the Add button, install the network protocol named NWLink ipx/... The agreement.
5. Start Menu--run-input secpol.msc
6, select Local Policy-User rights assignment-deny access to the computer from the network-right-click Properties, delete all user groups.
7, still in the above interface, select the security option, network access: Do not allow the SAM account anonymous enumeration property to be disabled, do not allow the SAM account and shared anonymous enumeration properties to be disabled, the local account sharing and security mode properties are changed to classic
8. Open Start Menu--Set---Control Panel, deactivate firewall
9. Create a folder, right-click Properties--Share tab-Select shared Folder--Tap the Permissions button--check Full control, change and read
Second, install VSS, add an account.
1. After the installation is complete, add a database to the server. (By the way, modify the user admin password, the user's default password is empty, the empty password is inconvenient).
2. Add a user to the server.
3, open the VSS client login interface, log in with the Admin user, in the left side of the interface under the $ node, right-click the new project, and then drag Java project locally to the project.
4, can be in the server as admin, for each user to assign access to the project permissions, tools-Project permissions, select the right user, and then select the following "User rights", select or Cancel check box tick
third, download the VSS plugin and install the VSS plugin
1. First come here http://download.csdn.net/detail/wangcunhuazi/8564147 to download the VSS plugin's compression package.
2. Extract the downloaded. RAR compressed package directly to the current folder (note Do not "extract to org.vssplugin_1.6.2", because there is already a folder in the compressed package called org.vssplugin_1.6.2), or directly extracted to the desktop, Get the folder named org.vssplugin_1.6.2.
3. Place the extracted folder named org.vssplugin_1.6.2 under Common\plugins of the MyEclipse installation directory, such as E:\MyEclipse10.7\Common\plugins, and then open common\ Configuration\org.eclipse.equinox.simpleconfigurator\bundles.info file, put the following two statements (Chinese "absolute path mode:" and "Relative path mode:" Do not write in, Here just to illustrate) add to the end of the file, note the path matching, need to change D:/programfiles/genuitec this path for your computer MyEclipse installation directory
Absolute path mode: Org.vssplugin,1.6.2,file:/d:/programfiles/genuitec/common/plugins/org.vssplugin_1.6.2/,4,false
Relative path mode: Org.vssplugin,1.6.2,file:plugins/org.vssplugin_1.6.2,4,false
4. Open Eclipse (MyEclipse) and open the help/about ... menu, click "Plugin-details" in the dialog box that appears, you can view all the plugins that are currently installed, see if there is a package of org.vssplugin_1.6.2 just installed, and if so, the installation is successful and if not, you need to turn off eclipse (MyEclipse), and then remove all directories and files except the Config.ini file under the configuration directory in the Eclipse (or myeclipse) directory, so that you can clear the previous configuration and then restart Eclipse ( MyEclipse) You can see the installed plug-in.
Iv. Configuring the VSS plug-in in MyEclipse
Configuration steps:
First step: Create a new project in Myclipse instantmsg, select Project Instantmsg, right-click, select Team-share Project ....
Step Two: Select the VSS Configuration Wizard in the dialog box below and click on the" Next > "button.
Step Three: Enter the user name and password assigned by the VSS Administrator:
Username: Your VSS account name
password: Your VSS account password
vss Directory: VSS Server directory
source dir: Select the project you want to share
relative mountpoint: Which directory of the project you want to share to VSS
Fourth Step: Click Browse after VSS directory ... button, locate the VSS server's shared folder instantmsg from your network Neighborhood, and then tap OK.
Fifth Step: click Source dir ... Behind the Browse ... button, select the folder where the project source files are located, and click OK.
Sixth step: Click the "Browse ..." button after "Relative mountpoint:", select the project folder instantmsg:, and then click "OK".
Seventh Step: Click the "Finish" button to complete the configuration.
Eighth step: Select the item instantmsg, then right-click and select Team-refresh.
V. How to use VSS in eclipse
1, before the eclipse with the VSS server to be refreshed, or it may be because of the files edited outside eclipse, Eclipse does not refresh to cause synchronization error, you can set eclipse to automatic refresh, How to: Window->preferences->general->workspace, check refresh Workspace automatically. Even so, there may be problems, because eclipse refreshes may have a certain delay, so when an error occurs, manually refresh and then sync.
2. "Commit changes" all files before leaving the company after work, refresh all files after work:
Right-click on the project name Instantmsg on the left side of the project Bar, Select Team-check in or Commit changes.
3, before modifying the file, get Latest version, make the revision as new as possible, in the event of a conflict, the workload will be relatively small. If it is common use, and often modified files, such as Web. XML, Struts-config.xml and other files, but also to get the latest version before the change, it is better to notify other personnel commit.
Find Struts-config.xml or Web. XML on the left Instantmsg project navigation bar, right-click on the file, select Team-get Latest Version:
4, in the event of a conflict, should first be compared to the server side of the changes to the local, not clear where to communicate with other people, the merger is completed, choose Commit Changes update, prohibit the problem does not make a commit changes operation!
5, VSS does not allow the deletion of server-side files, so it is best not to submit temporary files and temporary directories, such as the compilation of the resulting files and directories.
6, different function module file separate commit, the same function module file a commit, for analysis errors, reduce conflict, version fallback, etc. helpful.
7, the submitted documents must be tested, at least ensure that the local can be compiled through, convenient for other people to test.
8, graphics files and classes directory do not join VSS.
Consolidating VSS into Eclipse (MyEclipse)